Update fmt (#6514)

Merge pull request 6514
This commit is contained in:
mrHoliday 2017-11-04 16:50:30 +02:00 committed by jekyllbot
parent 94dc9265cb
commit a559dfaa6e
1 changed files with 5 additions and 0 deletions

View File

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