소스 검색

Quoted the arglist variable to fix errors from commands with spaces, per http://tldp.org/LDP/abs/html/internalvariables.html#ARGLIST
which states: "Of course, "$@" should be quoted." Also reference bug thread: https://github.com/gma/bundler-exec/issues/16

Mike Schroll 13 년 전
부모
커밋
5696faf073
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      bundler-exec.sh

+ 2 - 2
bundler-exec.sh

@@ -29,9 +29,9 @@ within-bundled-project()
 run-with-bundler()
 {
     if bundler-installed && within-bundled-project; then
-        bundle exec $@
+        bundle exec "$@"
     else
-        $@
+        "$@"
     fi
 }