diff --git a/bin/rubocop-bundle-safe b/bin/rubocop-bundle-safe index 9794f24..4cac10f 100755 --- a/bin/rubocop-bundle-safe +++ b/bin/rubocop-bundle-safe @@ -1,6 +1,6 @@ #! /usr/bin/env bash -if bundle check &>/dev/null && (bundle list | grep rubocop) &>/dev/null; then +if bundle check &>/dev/null && (bundle list | grep rubocop &>/dev/null); then exec bundle exec rubocop "$@" else exec rubocop "$@"