File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ function build_pio_sketches(){ # build_pio_sketches <board> <options> <examples-
149
149
continue
150
150
fi
151
151
152
- if [ ${CHECK_REQUIREMENTS} $sketchdir " $SDKCONFIG_DIR /esp32/sdkconfig" -eq 0 ]; then
152
+ local has_requirements=$( ${CHECK_REQUIREMENTS} $sketchdir " $SDKCONFIG_DIR /esp32/sdkconfig" )
153
+ if [ " $has_requirements " == " 0" ]; then
153
154
continue
154
155
fi
155
156
fi
Original file line number Diff line number Diff line change @@ -212,7 +212,8 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
212
212
exit 0
213
213
fi
214
214
215
- if [ $( check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" ) -eq 0 ]; then
215
+ local has_requirements=$( check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" )
216
+ if [ " $has_requirements " == " 0" ]; then
216
217
echo " Target $target does not meet the requirements for $sketchname . Skipping."
217
218
exit 0
218
219
fi
@@ -363,7 +364,8 @@ function count_sketches(){ # count_sketches <path> [target] [file] [ignore-requi
363
364
fi
364
365
365
366
if [ " $ignore_requirements " != " 1" ]; then
366
- if [ $( check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" ) -eq 0 ]; then
367
+ local has_requirements=$( check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" )
368
+ if [ " $has_requirements " == " 0" ]; then
367
369
continue
368
370
fi
369
371
fi
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ function run_test() {
37
37
return 0
38
38
fi
39
39
40
- if [ ${CHECK_REQUIREMENTS} $sketchdir " $sdkconfig_path " -eq 0 ]; then
40
+ local has_requirements=$( ${CHECK_REQUIREMENTS} $sketchdir " $sdkconfig_path " )
41
+ if [ " $has_requirements " == " 0" ]; then
41
42
printf " \033[93mTarget $target does not meet the requirements for $sketchname . Skipping.\033[0m\n"
42
43
printf " \n\n\n"
43
44
return 0
You can’t perform that action at this time.
0 commit comments