Skip to content

Commit 5a4c635

Browse files
committed
Fix shell script
1 parent 23534c8 commit 5a4c635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,13 @@ jobs:
390390
command: |
391391
bash -c "$PACKCHECK $BUILD" || exit 1
392392
count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l)
393-
if $count > 0
393+
if [ $count > 0 ]
394394
then exit 1
395395
fi
396396
git diff > tmp_len
397397
count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; } }' tmp_len | tee /dev/tty | wc -l)
398398
rm tmp_len
399-
if $count2 > 0
399+
if [ $count2 > 0 ]
400400
then exit 2
401401
fi
402402
- *save

0 commit comments

Comments
 (0)