Skip to content

Commit f293bf7

Browse files
committed
fix
1 parent 0b57a31 commit f293bf7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/scripts/sketch_utils.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fi
1111
function check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
1212
local sketchdir=$1
1313
local sdkconfig_path=$2
14+
local has_requirements=1
1415

1516
if [ ! -f "$sdkconfig_path" ] || [ ! -f "$sketchdir/ci.json" ]; then
1617
echo "ERROR: sdkconfig or ci.json not found"
@@ -24,7 +25,7 @@ function check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
2425
requirement=$(echo $requirement | xargs)
2526
found_line=$(grep -E "^$requirement" "$sdkconfig_path")
2627
if [[ "$found_line" == "" ]]; then
27-
echo 0
28+
has_requirements=0
2829
fi
2930
done
3031
fi
@@ -42,11 +43,11 @@ function check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
4243
fi
4344
done
4445
if [[ "$found" == "false" ]]; then
45-
echo 0
46+
has_requirements=0
4647
fi
4748
fi
4849

49-
echo 1
50+
echo $has_requirements
5051
}
5152

5253
function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [extra-options]

0 commit comments

Comments
 (0)