diff --git a/script/fmt b/script/fmt index e7c6b7cb..95852628 100755 --- a/script/fmt +++ b/script/fmt @@ -1,3 +1,8 @@ #!/bin/bash echo "Rubocop $(bundle exec rubocop --version)" bundle exec rubocop -D $@ +success=$? +if ((success != 0)); then + echo -e "\nTry running \`script/fmt -a\` to automatically fix errors" +fi +exit $success