Просмотр исходного кода

Merge pull request #8 from papercavalier/refactor

refactor run-with-bundler
Graham Ashton 13 лет назад
Родитель
Сommit
8835dae5fa
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
 }