Commit 913cf532 authored by Hakan Ensari's avatar Hakan Ensari
Browse files

refactor _run-with-bundler

parent 9e601c23
...@@ -23,12 +23,10 @@ _within-bundled-project() { ...@@ -23,12 +23,10 @@ _within-bundled-project() {
} }
_run-with-bundler() { _run-with-bundler() {
local command="$1"
shift
if _bundler-installed && _within-bundled-project; then if _bundler-installed && _within-bundled-project; then
bundle exec $command "$@" bundle exec $@
else else
$command "$@" $@
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment