Created
December 13, 2016 23:19
-
-
Save warrenseen/e95f60345316465bdfb9d895d4308304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CHANGES=$(bundle exec rubocop -a -f fi) | |
if [ -n "${CHANGES//\n}" ]; then | |
git add -p $CHANGES < /dev/tty | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment