Skip to content

Commit 23534c8

Browse files
committed
Fix review comments
1 parent 8ba093a commit 23534c8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,15 @@ jobs:
390390
command: |
391391
bash -c "$PACKCHECK $BUILD" || exit 1
392392
count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l)
393-
count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; print FILENAME; } }' *.hs | tee /dev/tty | wc -l)
394-
exit $((count+count2))
393+
if $count > 0
394+
then exit 1
395+
fi
396+
git diff > tmp_len
397+
count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; } }' tmp_len | tee /dev/tty | wc -l)
398+
rm tmp_len
399+
if $count2 > 0
400+
then exit 2
401+
fi
395402
- *save
396403

397404
workflows:

0 commit comments

Comments
 (0)