File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ 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" ; then
152
+ if [ $( $ {CHECK_REQUIREMENTS} $sketchdir " $SDKCONFIG_DIR /esp32/sdkconfig" ) -eq 0 ] ; then
153
153
continue
154
154
fi
155
155
fi
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
19
19
requirement=$( echo $requirement | xargs)
20
20
found_line=$( grep -E " ^$requirement " " $sdkconfig_path " )
21
21
if [[ " $found_line " == " " ]]; then
22
- return 0
22
+ echo 0
23
23
fi
24
24
done
25
25
fi
@@ -37,11 +37,11 @@ check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
37
37
fi
38
38
done
39
39
if [[ " $found " == " false" ]]; then
40
- return 0
40
+ echo 0
41
41
fi
42
42
fi
43
43
44
- return 1
44
+ echo 1
45
45
}
46
46
47
47
function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [extra-options]
@@ -207,7 +207,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
207
207
exit 0
208
208
fi
209
209
210
- if ! check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" ; then
210
+ if [ $( check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" ) -eq 0 ] ; then
211
211
echo " Target $target does not meet the requirements for $sketchname . Skipping."
212
212
exit 0
213
213
fi
@@ -358,7 +358,7 @@ function count_sketches(){ # count_sketches <path> [target] [file] [ignore-requi
358
358
fi
359
359
360
360
if [ " $ignore_requirements " != " 1" ]; then
361
- if ! check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" ; then
361
+ if [ $( check_requirements " $sketchdir " " $SDKCONFIG_DIR /$target /sdkconfig" ) -eq 0 ] ; then
362
362
continue
363
363
fi
364
364
fi
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function run_test() {
37
37
return 0
38
38
fi
39
39
40
- if ! $ {CHECK_REQUIREMENTS} $sketchdir $sdkconfig_path ; then
40
+ if [ $( $ {CHECK_REQUIREMENTS} $sketchdir $sdkconfig_path ) -eq 0 ] ; then
41
41
printf " \033[93mTarget $target does not meet the requirements for $sketchname . Skipping.\033[0m\n"
42
42
printf " \n\n\n"
43
43
return 0
You can’t perform that action at this time.
0 commit comments