Browse code

refactor _run-with-bundler

Hakan Ensari authored on 14/07/2011 at 16:34:18
Showing 1 changed files
... ...
@@ -23,12 +23,10 @@ _within-bundled-project() {
23 23
 }
24 24
 
25 25
 _run-with-bundler() {
26
-  local command="$1"
27
-  shift
28 26
   if _bundler-installed && _within-bundled-project; then
29
-    bundle exec $command "$@"
27
+    bundle exec $@
30 28
   else
31
-    $command "$@"
29
+    $@
32 30
   fi
33 31
 }
34 32