From 11bdb80c82cafc15c8fa1149c1ddbbd6bf901110 Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Wed, 28 Jun 2017 22:40:05 -0500 Subject: [PATCH] Fix bin/rubocop --- bin/rubocop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rubocop b/bin/rubocop index a12f1423..8e70cb30 100755 --- a/bin/rubocop +++ b/bin/rubocop @@ -12,7 +12,7 @@ set -eou pipefail -case $1 in +case "${1-}" in -A) echo "Rubocop autocorrect is ON" >&2 bin/rake -f lib/tasks/rubocop.rake rubocop:auto_correct @@ -39,7 +39,7 @@ case $1 in *) # with no args, run vanilla rubocop # else assume we're passing in arbitrary arguments - if [ -z "$1" ]; then + if [ -z "${1:-}" ]; then bin/rake -f lib/tasks/rubocop.rake rubocop else bundle exec rubocop "$@"