Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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