Skip to content

Commit 3cf8bfb

Browse files
committed
Allow spaces in paths passed to mkdir and rm on bash
1 parent fbccf8d commit 3cf8bfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/export/gcc_arm_common.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ifeq ($(shell echo $$OS),$$OS)
66
MAKEDIR = if not exist "$(1)" mkdir "$(1)"
77
RM = rmdir /S /Q "$(1)"
88
else
9-
MAKEDIR = $(SHELL) -c "mkdir -p $(1)"
10-
RM = $(SHELL) -c "rm -rf $(1)"
9+
MAKEDIR = $(SHELL) -c "mkdir -p \"$(1)\""
10+
RM = $(SHELL) -c "rm -rf \"$(1)\""
1111
endif
1212

1313
ifeq (,$(filter .build,$(notdir $(CURDIR))))

0 commit comments

Comments
 (0)