mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add rubocop-bundle-safe executable
Within a bundled project, rubocop is executed via "bundle exec", while outside of a project it's run executed directly.
This commit is contained in:
7
bin/rubocop-bundle-safe
Executable file
7
bin/rubocop-bundle-safe
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
if bundle check &>/dev/null; then
|
||||||
|
exec bundle exec rubocop "$@"
|
||||||
|
else
|
||||||
|
exec rubocop "$@"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user