Skip to content

Commit c2d6686

Browse files
committed
Correct batch detection algorimthm
There are two shell-like things that we care about bash: does environment varible expansion with $ batch: does environment varible expansion by surrounding something with % so to detect batch, try to expand a variable on the shell with $. If you get a $ back, you are in batch!
1 parent 61ee30e commit c2d6686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export/gcc_arm_common.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
33

44
# cross-platform directory manipulation
5-
ifeq ($(OSTYPE),)
5+
ifeq ($(shell echo $$OS),$$OS)
66
MAKEDIR = if not exist "$(1)" mkdir "$(1)"
77
RM = rmdir /S /Q
88
else

0 commit comments

Comments
 (0)