Skip to content

Commit 0bba705

Browse files
committed
Fix shell variable comparison without $CI present
+ '[' = true ']' ./tests/restyle.sh: line 16: [: =: unary operator expected vs. + '[' '' = true ']'
1 parent bb79e90 commit 0bba705

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/restyle.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ CLANG_FORMAT=${CLANG_FORMAT:-clang-format-15}
1414
cd $root
1515
python $root/tests/restyle.py format --clang-format=$CLANG_FORMAT preset --include core --include arduino
1616

17-
if [ $CI = "true" ] ; then
18-
echo foo
17+
if [ "$CI" = "true" ] ; then
1918
python $root/tests/restyle.py assert --with-summary --with-errors
2019
else
21-
echo bar
2220
python $root/tests/restyle.py assert --with-diff
2321
fi

0 commit comments

Comments
 (0)