Fix: `trigger` embedded plugin fails to exec scripts at paths contains spaces

This commit is contained in:
Mikhail Emelchenkov 2018-05-28 20:34:56 +05:00 committed by Brian Cain
parent 1679e383d6
commit ed8ecd15e1
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ module Vagrant
@machine.ui.detail(I18n.t("vagrant.trigger.run.inline", command: config.inline))
else
cmd = File.expand_path(config.path, @env.root_path)
cmd = File.expand_path(config.path, @env.root_path).shellescape
args = Array(config.args)
cmd << " #{args.join(' ')}" if !args.empty?
cmd = Shellwords.split(cmd)