mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix bin/rubocop
This commit is contained in:
parent
e5cbe799f1
commit
11bdb80c82
@ -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 "$@"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user