浏览代码

refactor run-with-bundler

Hakan Ensari 13 年之前
父节点
当前提交
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
 }