core: forgot to gate one change from last commit to Windows
This commit is contained in:
parent
77c309e91f
commit
b8e6fe418f
|
@ -1,5 +1,6 @@
|
||||||
require "log4r"
|
require "log4r"
|
||||||
|
|
||||||
|
require "vagrant/util/platform"
|
||||||
require "vagrant/util/ssh"
|
require "vagrant/util/ssh"
|
||||||
require "vagrant/util/shell_quote"
|
require "vagrant/util/shell_quote"
|
||||||
|
|
||||||
|
@ -49,7 +50,12 @@ module Vagrant
|
||||||
# don't then we default to a TTY
|
# don't then we default to a TTY
|
||||||
if !opts[:extra_args].include?("-t") && !opts[:extra_args].include?("-T")
|
if !opts[:extra_args].include?("-t") && !opts[:extra_args].include?("-T")
|
||||||
opts[:extra_args] << "-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
|
end
|
||||||
|
|
||||||
opts[:extra_args] << command
|
opts[:extra_args] << command
|
||||||
|
|
Loading…
Reference in New Issue