lib/vagrant/util/powershell.rb in vagrant-unbundled-2.2.9.0 vs lib/vagrant/util/powershell.rb in vagrant-unbundled-2.2.10.0
- old
+ new
@@ -229,10 +229,10 @@
powerup = "$p = Start-Process -FilePath powershell -ArgumentList @('-NoLogo', '-NoProfile', " \
"'-NonInteractive', '-ExecutionPolicy', 'Bypass', '-EncodedCommand', '#{wrapper_content}') " \
"-PassThru -WindowStyle Hidden -Wait -Verb RunAs; if($p){ exit $p.ExitCode; }else{ exit 1 }"
cmd = [
- "powershell",
+ executable,
"-NoLogo",
"-NoProfile",
"-NonInteractive",
"-ExecutionPolicy", "Bypass",
"-Command", powerup