Fixes unexecutable commands on win32 in BP

Signed-off-by: Luca Moser <moser.luca@gmail.com>
This commit is contained in:
Luca Moser
2014-08-11 20:24:57 +02:00
parent 0624720634
commit 28a0e94bb9

View File

@@ -55,7 +55,10 @@ class BufferedProcess
"\"#{arg.replace(/"/g, '\\"')}\""
else
cmdArgs = []
cmdArgs.unshift("\"#{command}\"")
if /\s/.test(command)
cmdArgs.unshift("\"#{command}\"")
else
cmdArgs.unshift(command)
cmdArgs = ['/s', '/c', "\"#{cmdArgs.join(' ')}\""]
cmdOptions = _.clone(options)
cmdOptions.windowsVerbatimArguments = true