From 508ca12be956b32bc8f6f05103e5f8d01a0aa349 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 13 Nov 2014 15:16:47 -0800 Subject: [PATCH] spawn -> spawnUpdate --- src/browser/auto-updater-win32.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/browser/auto-updater-win32.coffee b/src/browser/auto-updater-win32.coffee index a28a8092e..41c7fd0eb 100644 --- a/src/browser/auto-updater-win32.coffee +++ b/src/browser/auto-updater-win32.coffee @@ -20,7 +20,7 @@ class AutoUpdater spawnUpdate: (args, callback) -> stdout = '' error = null - updateProcess = ChildProcess.spawn(@updateDotExe, args) + updateProcess = ChildProcess.spawnUpdate(@updateDotExe, args) updateProcess.stdout.on 'data', (data) -> stdout += data updateProcess.on 'error', (processError) -> error ?= processError updateProcess.on 'close', (code, signal) -> @@ -35,14 +35,14 @@ class AutoUpdater shellAutoUpdater.quitAndInstall() return - @spawn ['--update', @updateUrl], (error) => + @spawnUpdate ['--update', @updateUrl], (error) => return if error? - @spawn ['--processStart', 'atom.exe'], -> + @spawnUpdate ['--processStart', 'atom.exe'], -> shellAutoUpdater.quitAndInstall() downloadUpdate: (callback) -> - @spawn ['--download', @updateUrl], (error, stdout) -> + @spawnUpdate ['--download', @updateUrl], (error, stdout) -> return callback(error) if error? try @@ -56,7 +56,7 @@ class AutoUpdater callback(null, update) installUpdate: (callback) -> - @spawn(['--update', @updateUrl], callback) + @spawnUpdate(['--update', @updateUrl], callback) checkForUpdates: -> throw new Error('Update URL is not set') unless @updateUrl