mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Only call callback once
This commit is contained in:
@@ -71,7 +71,6 @@ updatePath = (callback) ->
|
||||
@echo off
|
||||
"%~dp0\\#{relativeExePath}" %*
|
||||
"""
|
||||
fs.writeFile(atomCommandPath, atomCommand, callback)
|
||||
|
||||
apmCommandPath = path.join(binFolder, 'apm.cmd')
|
||||
relativeApmPath = path.relative(binFolder, path.join(process.resourcesPath, 'app', 'apm', 'node_modules', 'atom-package-manager', 'bin', 'apm.cmd'))
|
||||
@@ -79,7 +78,10 @@ updatePath = (callback) ->
|
||||
@echo off
|
||||
"%~dp0\\#{relativeApmPath}" %*
|
||||
"""
|
||||
fs.writeFile(apmCommandPath, apmCommand, callback)
|
||||
|
||||
fs.writeFile atomCommandPath, atomCommand, ->
|
||||
fs.writeFile apmCommandPath, apmCommand, ->
|
||||
callback()
|
||||
|
||||
getPath = (callback) ->
|
||||
spawnReg ['query', environmentKeyPath, '/v', 'Path'], (error, stdout) ->
|
||||
|
||||
Reference in New Issue
Block a user