Fix bin/rubocop

This commit is contained in:
Benjamin Fleischer 2017-06-28 22:40:05 -05:00
parent e5cbe799f1
commit 11bdb80c82

View File

@ -12,7 +12,7 @@
set -eou pipefail set -eou pipefail
case $1 in case "${1-}" in
-A) -A)
echo "Rubocop autocorrect is ON" >&2 echo "Rubocop autocorrect is ON" >&2
bin/rake -f lib/tasks/rubocop.rake rubocop:auto_correct bin/rake -f lib/tasks/rubocop.rake rubocop:auto_correct
@ -39,7 +39,7 @@ case $1 in
*) *)
# with no args, run vanilla rubocop # with no args, run vanilla rubocop
# else assume we're passing in arbitrary arguments # else assume we're passing in arbitrary arguments
if [ -z "$1" ]; then if [ -z "${1:-}" ]; then
bin/rake -f lib/tasks/rubocop.rake rubocop bin/rake -f lib/tasks/rubocop.rake rubocop
else else
bundle exec rubocop "$@" bundle exec rubocop "$@"