diff --git a/bin/rubocop-bundle-safe b/bin/rubocop-bundle-safe new file mode 100755 index 0000000..4268a49 --- /dev/null +++ b/bin/rubocop-bundle-safe @@ -0,0 +1,7 @@ +#! /usr/bin/env bash + +if bundle check &>/dev/null; then + exec bundle exec rubocop "$@" +else + exec rubocop "$@" +fi