Skip to content

Commit fd92f0a

Browse files
committed
Check not equal to 0 instead of equal to 1
1 parent b39eebf commit fd92f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/compile_examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ for d in examples/*/ ; do
88
arduino-cli compile -b $BOARD_CONFIG --libraries=".." "$d" --output-dir "builds/mini/$(basename $d)";
99

1010
# Check the error code
11-
if [ $? == 1 ]; then
11+
if [ $? != 0 ]; then
1212
exit 1
1313
fi
1414
done

0 commit comments

Comments
 (0)