mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 10:26:42 +00:00
Within a bundled project, rubocop is executed via "bundle exec", while outside of a project it's run executed directly.
8 lines
116 B
Bash
Executable File
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
|