Skip to content

Commit 86e0600

Browse files
committed
Fix postobjcopy script on UNIX
1 parent 87accc0 commit 86e0600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ recipe.objcopy.bin.pattern.linux=python3 "{tools.esptool_py.path}/{tools.esptool
220220

221221
## Create Insights Firmware Package
222222
recipe.hooks.objcopy.postobjcopy.1.pattern_args={build.path} {build.project_name} {build.path}
223-
recipe.hooks.objcopy.postobjcopy.1.pattern=bash -c "[ -d {build.path}/libraries/Insights ] && {tools.gen_insights_pkg.cmd} {recipe.hooks.objcopy.postobjcopy.1.pattern_args}"
223+
recipe.hooks.objcopy.postobjcopy.1.pattern=bash -c "[ ! -d {build.path}/libraries/Insights ] || {tools.gen_insights_pkg.cmd} {recipe.hooks.objcopy.postobjcopy.1.pattern_args}"
224224
recipe.hooks.objcopy.postobjcopy.1.pattern.windows=cmd /c if exist "{build.path}\libraries\Insights" ({tools.gen_insights_pkg.cmd} {recipe.hooks.objcopy.postobjcopy.1.pattern_args})
225225

226226
## Save bin

0 commit comments

Comments
 (0)