mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
cmdArgs -> args
This commit is contained in:
@@ -9,14 +9,13 @@ exeName = path.basename(process.execPath)
|
||||
# Spawn the Update.exe with the given arguments and invoke the callback when
|
||||
# the command completes.
|
||||
exports.spawn = (args, callback) ->
|
||||
command = process.env.comspec or 'cmd.exe'
|
||||
args = args.map (arg) -> "\"#{arg.toString().replace(/"/g, '\\"')}\""
|
||||
if /\s/.test(updateDotExe)
|
||||
args.unshift("\"#{updateDotExe}\"")
|
||||
else
|
||||
args.unshift(updateDotExe)
|
||||
|
||||
args = ['/s', '/c', "\"#{cmdArgs.join(' ')}\""]
|
||||
command = process.env.comspec or 'cmd.exe'
|
||||
args = ['/s', '/c', "\"#{args.join(' ')}\""]
|
||||
|
||||
updateProcess = ChildProcess.spawn(command, args, windowsVerbatimArguments: true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user