Преглед на файлове

refactor run-with-bundler

Hakan Ensari преди 14 години
родител
ревизия
3301c3b234
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      bundler-exec.sh

+ 2 - 4
bundler-exec.sh

@@ -21,12 +21,10 @@ within-bundled-project()
 
 run-with-bundler()
 {
-    local command="$1"
-    shift
     if bundler-installed && within-bundled-project; then
-        bundle exec $command "$@"
+        bundle exec $@
     else
-        $command "$@"
+        $@
     fi
 }