소스 검색

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
 }