Sfoglia il codice sorgente

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 anni fa
parent
commit
5696faf073
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      bundler-exec.sh

+ 2 - 2
bundler-exec.sh

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