Update rubocop-bundle-safe

This commit is contained in:
2017-11-17 10:45:10 +00:00
parent 4b8d753173
commit 8cfb3cfc3b

View File

@@ -1,6 +1,6 @@
#! /usr/bin/env bash
if bundle check &>/dev/null; then
if bundle check &>/dev/null && (bundle list | grep rubocop) &>/dev/null; then
exec bundle exec rubocop "$@"
else
exec rubocop "$@"