Skip to content

Commit 4fd0ca9

Browse files
committed
fix
1 parent 481b682 commit 4fd0ca9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/scripts/install-platformio-esp32.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ function build_pio_sketches(){ # build_pio_sketches <board> <options> <examples-
149149
continue
150150
fi
151151

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
153154
continue
154155
fi
155156
fi

.github/scripts/sketch_utils.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
212212
exit 0
213213
fi
214214

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
216217
echo "Target $target does not meet the requirements for $sketchname. Skipping."
217218
exit 0
218219
fi
@@ -363,7 +364,8 @@ function count_sketches(){ # count_sketches <path> [target] [file] [ignore-requi
363364
fi
364365

365366
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
367369
continue
368370
fi
369371
fi

.github/scripts/tests_run.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function run_test() {
3737
return 0
3838
fi
3939

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
4142
printf "\033[93mTarget $target does not meet the requirements for $sketchname. Skipping.\033[0m\n"
4243
printf "\n\n\n"
4344
return 0

0 commit comments

Comments
 (0)