diff --git a/.circleci/config.yml b/.circleci/config.yml index 00ceca3cad..3a9bd7eb13 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -390,13 +390,13 @@ jobs: command: | bash -c "$PACKCHECK $BUILD" || exit 1 count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l) - if $count > 0 + if [ $count > 0 ] then exit 1 fi git diff > tmp_len count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; } }' tmp_len | tee /dev/tty | wc -l) rm tmp_len - if $count2 > 0 + if [ $count2 > 0 ] then exit 2 fi - *save