Skip to content

Instantly share code, notes, and snippets.

@warrenseen
Created December 13, 2016 23:19
Show Gist options
  • Save warrenseen/e95f60345316465bdfb9d895d4308304 to your computer and use it in GitHub Desktop.
Save warrenseen/e95f60345316465bdfb9d895d4308304 to your computer and use it in GitHub Desktop.
#!/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