From 9084122a5c18ba2ffd784810749c82e9659508c8 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 13 Nov 2014 15:54:11 -0800 Subject: [PATCH] cmdArgs -> args --- src/browser/squirrel-update.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/browser/squirrel-update.coffee b/src/browser/squirrel-update.coffee index 4d221aee2..a7d18a5fb 100644 --- a/src/browser/squirrel-update.coffee +++ b/src/browser/squirrel-update.coffee @@ -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)