Bläddra i källkod

refactor run-with-bundler

Hakan Ensari 13 år sedan
förälder
incheckning
3301c3b234
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2 4
      bundler-exec.sh

+ 2 - 4
bundler-exec.sh

@@ -21,12 +21,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
 }
 }