Skip to content

Instantly share code, notes, and snippets.

@thephw
Created December 17, 2015 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thephw/18cc1366bb023967b33b to your computer and use it in GitHub Desktop.
Save thephw/18cc1366bb023967b33b to your computer and use it in GitHub Desktop.
rubocop_happy = $(rubocop -a)
if [ "$rubocop_happy" != "true" ]
then
cat <<\EOF
Error: Rubocop detected style conflicts, commit cancelled, please review.
EOF
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment