From 8cfb3cfc3bc309b189063a3d0784c4ad8138a3c0 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 17 Nov 2017 10:45:10 +0000 Subject: [PATCH] Update rubocop-bundle-safe --- bin/rubocop-bundle-safe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rubocop-bundle-safe b/bin/rubocop-bundle-safe index 4268a49..9794f24 100755 --- a/bin/rubocop-bundle-safe +++ b/bin/rubocop-bundle-safe @@ -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 "$@"