lib/vagrant/plugin/v2/trigger.rb in vagrant-unbundled-2.2.0.0 vs lib/vagrant/plugin/v2/trigger.rb in vagrant-unbundled-2.2.2.0

- old
+ new

@@ -159,10 +159,14 @@ # Runs a script on a guest # # @param [Provisioners::Shell::Config] config A Shell provisioner config def run(config, on_error, exit_codes) if config.inline - cmd = Shellwords.split(config.inline) + if Vagrant::Util::Platform.windows? + cmd = config.inline + else + cmd = Shellwords.split(config.inline) + end @machine.ui.detail(I18n.t("vagrant.trigger.run.inline", command: config.inline)) else cmd = File.expand_path(config.path, @env.root_path).shellescape args = Array(config.args)