File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
function check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
12
12
local sketchdir=$1
13
13
local sdkconfig_path=$2
14
+ local has_requirements=1
14
15
15
16
if [ ! -f " $sdkconfig_path " ] || [ ! -f " $sketchdir /ci.json" ]; then
16
17
echo " ERROR: sdkconfig or ci.json not found"
@@ -24,7 +25,7 @@ function check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
24
25
requirement=$( echo $requirement | xargs)
25
26
found_line=$( grep -E " ^$requirement " " $sdkconfig_path " )
26
27
if [[ " $found_line " == " " ]]; then
27
- echo 0
28
+ has_requirements= 0
28
29
fi
29
30
done
30
31
fi
@@ -42,11 +43,11 @@ function check_requirements(){ # check_requirements <sketchdir> <sdkconfig_path>
42
43
fi
43
44
done
44
45
if [[ " $found " == " false" ]]; then
45
- echo 0
46
+ has_requirements= 0
46
47
fi
47
48
fi
48
49
49
- echo 1
50
+ echo $has_requirements
50
51
}
51
52
52
53
function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [extra-options]
You can’t perform that action at this time.
0 commit comments