File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function count_sketches(){ # count_sketches <examples-path>
9797 fi
9898
9999 # Check if the sketch requires any configuration options
100- requirements=$( jq -r ' .requires[]' $sketchdir /ci.json)
100+ requirements=$( jq -r ' .requires[]? // empty ' $sketchdir /ci.json)
101101 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
102102 for requirement in $requirements ; do
103103 found_line=$( grep " $requirement " $LIBS_DIR /esp32/sdkconfig)
@@ -187,7 +187,7 @@ function build_pio_sketches(){ # build_pio_sketches <board> <options> <examples-
187187 fi
188188
189189 # Check if the sketch requires any configuration options
190- requirements=$( jq -r ' .requires[]' $sketchdir /ci.json)
190+ requirements=$( jq -r ' .requires[]? // empty ' $sketchdir /ci.json)
191191 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
192192 for requirement in $requirements ; do
193193 found_line=$( grep " $requirement " $LIBS_DIR /esp32/sdkconfig)
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
151151 fi
152152
153153 # Check if the sketch requires any configuration options
154- requirements=$( jq -r ' .requires[]' $sketchdir /ci.json)
154+ requirements=$( jq -r ' .requires[]? // empty ' $sketchdir /ci.json)
155155 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
156156 for requirement in $requirements ; do
157157 found_line=$( grep " $requirement " $LIBS_DIR /$target /sdkconfig)
@@ -307,7 +307,7 @@ function count_sketches(){ # count_sketches <path> [target] [file]
307307 fi
308308
309309 # Check if the sketch requires any configuration options
310- requirements=$( jq -r ' .requires[]' $sketchdir /ci.json)
310+ requirements=$( jq -r ' .requires[]? // empty ' $sketchdir /ci.json)
311311 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
312312 for requirement in $requirements ; do
313313 found_line=$( grep " $requirement " $LIBS_DIR /$target /sdkconfig)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function run_test() {
2222 fi
2323
2424 # Check if the sketch requires any configuration options
25- requirements=$( jq -r ' .requires[]' $sketchdir /ci.json)
25+ requirements=$( jq -r ' .requires[]? // empty ' $sketchdir /ci.json)
2626 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
2727 for requirement in $requirements ; do
2828 found_line=$( grep " $requirement " $LIBS_DIR /$target /sdkconfig)
You can’t perform that action at this time.
0 commit comments