From b8e6fe418f0c445190c8748c07ad0b95af2f0dd5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 16 Jan 2014 22:33:15 -0800 Subject: [PATCH] core: forgot to gate one change from last commit to Windows --- lib/vagrant/action/builtin/ssh_run.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/ssh_run.rb b/lib/vagrant/action/builtin/ssh_run.rb index edd7cb6bf..5ca2ef68f 100644 --- a/lib/vagrant/action/builtin/ssh_run.rb +++ b/lib/vagrant/action/builtin/ssh_run.rb @@ -1,5 +1,6 @@ require "log4r" +require "vagrant/util/platform" require "vagrant/util/ssh" require "vagrant/util/shell_quote" @@ -49,7 +50,12 @@ module Vagrant # don't then we default to a TTY if !opts[:extra_args].include?("-t") && !opts[:extra_args].include?("-T") opts[:extra_args] << "-t" - opts[:extra_args] << "-t" + + if Util::Platform.windows? + # Windows currently has a bug where STDIN won't be a TTY. + # This absolutely forces the allocation. + opts[:extra_args] << "-t" + end end opts[:extra_args] << command