Files
dotfiles/bin/rubocop-bundle-safe
Jim Myhrberg 71a669b5bc 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.
2017-05-26 15:32:24 +01:00

8 lines
116 B
Bash
Executable File

#! /usr/bin/env bash
if bundle check &>/dev/null; then
exec bundle exec rubocop "$@"
else
exec rubocop "$@"
fi