diff options
author | Andre Arko <andre@arko.net> | 2014-04-27 23:53:43 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-06-15 22:25:51 -0700 |
commit | 8ec5d4c93dcf6cbfa09cb1c436d94c7ca3bc310d (patch) | |
tree | 169dd5a4185158e72a9ee13a18bdfe86d810f638 | |
parent | 7f85fa560b795d528ac39ee756c664577ac3b2a4 (diff) | |
download | bundler-8ec5d4c93dcf6cbfa09cb1c436d94c7ca3bc310d.tar.gz |
shell escape bundle open args :O
-rw-r--r-- | lib/bundler/cli/open.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bundler/cli/open.rb b/lib/bundler/cli/open.rb index 577aea3409..a5a88dfc76 100644 --- a/lib/bundler/cli/open.rb +++ b/lib/bundler/cli/open.rb @@ -15,9 +15,8 @@ module Bundler return unless spec full_gem_path = spec.full_gem_path Dir.chdir(full_gem_path) do - command = "#{editor} #{full_gem_path}" - success = system(command) - Bundler.ui.info "Could not run '#{command}'" unless success + command = [editor, full_gem_path] + system(*command) || Bundler.ui.info("Could not run '#{command.join(' ')}'") end end |