Permalink
Browse files

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: #16
  • Loading branch information...
1 parent 8a2e0bc commit 5696faf0730fca3d889382c4e3cbcf258ae5cfaf Mike Schroll committed Dec 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bundler-exec.sh
View
@@ -29,9 +29,9 @@ within-bundled-project()
run-with-bundler()
{
if bundler-installed && within-bundled-project; then
- bundle exec $@
+ bundle exec "$@"
else
- $@
+ "$@"
fi
}

0 comments on commit 5696faf

Please sign in to comment.