Remove subprocess command string re-encoding to default external
This commit is contained in:
parent
2a8b3f40ac
commit
c555e4b72f
|
@ -25,7 +25,6 @@ module Vagrant
|
|||
def initialize(*command)
|
||||
@options = command.last.is_a?(Hash) ? command.pop : {}
|
||||
@command = command.dup
|
||||
@command = @command.map { |s| s.encode(Encoding.default_external) }
|
||||
@command[0] = Which.which(@command[0]) if !File.file?(@command[0])
|
||||
if !@command[0]
|
||||
raise Errors::CommandUnavailableWindows, file: command[0] if Platform.windows?
|
||||
|
|
Loading…
Reference in New Issue