Skip to content

Commit

Permalink
fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Sep 28, 2024
1 parent bba148f commit 906f255
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/install-platformio-esp32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function count_sketches(){ # count_sketches <examples-path>
fi

# Check if the sketch requires any configuration options
requirements=$(jq -r '.requires[]' $sketchdir/ci.json)
requirements=$(jq -r '.requires[]? // empty' $sketchdir/ci.json)
if [[ "$requirements" != "null" ]] || [[ "$requirements" != "" ]]; then
for requirement in $requirements; do
found_line=$(grep "$requirement" $LIBS_DIR/esp32/sdkconfig)
Expand Down Expand Up @@ -187,7 +187,7 @@ function build_pio_sketches(){ # build_pio_sketches <board> <options> <examples-
fi

# Check if the sketch requires any configuration options
requirements=$(jq -r '.requires[]' $sketchdir/ci.json)
requirements=$(jq -r '.requires[]? // empty' $sketchdir/ci.json)
if [[ "$requirements" != "null" ]] || [[ "$requirements" != "" ]]; then
for requirement in $requirements; do
found_line=$(grep "$requirement" $LIBS_DIR/esp32/sdkconfig)
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/sketch_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
fi

# Check if the sketch requires any configuration options
requirements=$(jq -r '.requires[]' $sketchdir/ci.json)
requirements=$(jq -r '.requires[]? // empty' $sketchdir/ci.json)
if [[ "$requirements" != "null" ]] || [[ "$requirements" != "" ]]; then
for requirement in $requirements; do
found_line=$(grep "$requirement" $LIBS_DIR/$target/sdkconfig)
Expand Down Expand Up @@ -307,7 +307,7 @@ function count_sketches(){ # count_sketches <path> [target] [file]
fi

# Check if the sketch requires any configuration options
requirements=$(jq -r '.requires[]' $sketchdir/ci.json)
requirements=$(jq -r '.requires[]? // empty' $sketchdir/ci.json)
if [[ "$requirements" != "null" ]] || [[ "$requirements" != "" ]]; then
for requirement in $requirements; do
found_line=$(grep "$requirement" $LIBS_DIR/$target/sdkconfig)
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function run_test() {
fi

# Check if the sketch requires any configuration options
requirements=$(jq -r '.requires[]' $sketchdir/ci.json)
requirements=$(jq -r '.requires[]? // empty' $sketchdir/ci.json)
if [[ "$requirements" != "null" ]] || [[ "$requirements" != "" ]]; then
for requirement in $requirements; do
found_line=$(grep "$requirement" $LIBS_DIR/$target/sdkconfig)
Expand Down

0 comments on commit 906f255

Please sign in to comment.