plugins/communicators/winssh/communicator.rb in vagrant-unbundled-1.9.5.1 vs plugins/communicators/winssh/communicator.rb in vagrant-unbundled-1.9.7.1

- old
+ new

@@ -31,10 +31,10 @@ stderr_marker_found = false stderr_data_buffer = '' tfile = Tempfile.new('vagrant-ssh') remote_ext = shell == "powershell" ? "ps1" : "bat" - remote_name = "C:\\Windows\\Temp\\#{File.basename(tfile.path)}.#{remote_ext}" + remote_name = "#{machine_config_ssh.upload_directory}\\#{File.basename(tfile.path)}.#{remote_ext}" if shell == "powershell" base_cmd = "powershell -File #{remote_name}" tfile.puts <<-SCRIPT.force_encoding('ASCII-8BIT') Remove-Item #{remote_name}