Skip to content

Commit 4892d54

Browse files
authored
Merge pull request #204 from fpistm/recipe-hook-windows-space-in-path
Fixed recipe hook for Windows when path contains space
2 parents acb82a5 + 87ed5e3 commit 4892d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ build.opt.sourcepath={build.source.path}/{build.opt.name}
8484
build.opt.path={build.path}/sketch/{build.opt.name}
8585

8686
# Create empty {build.opt} if not exists in the sketch dir
87-
recipe.hooks.prebuild.1.pattern.windows=cmd /c "if not exist {build.opt.sourcepath} mkdir {build.path}\sketch & type NUL > {build.opt.path}"
87+
recipe.hooks.prebuild.1.pattern.windows=cmd /c if not exist "{build.opt.sourcepath}" mkdir "{build.path}\sketch" & type NUL > "{build.opt.path}"
8888
recipe.hooks.prebuild.1.pattern.linux=bash -c "[ -f {build.opt.sourcepath} ] || (mkdir -p {build.path}/sketch && touch {build.opt.path})"
8989
recipe.hooks.prebuild.1.pattern.macosx=bash -c "[ -f {build.opt.sourcepath} ] || (mkdir -p {build.path}/sketch && touch {build.opt.path})"
9090

0 commit comments

Comments
 (0)