Resolve buildDir before it is used in other join calls

This commit is contained in:
Kevin Sawicki
2014-09-24 09:48:56 -07:00
parent 9e99cf03ea
commit 475fd07790

View File

@@ -39,6 +39,7 @@ module.exports = (grunt) ->
tmpDir = os.tmpdir()
appName = if process.platform is 'darwin' then 'Atom.app' else 'Atom'
buildDir = grunt.option('build-dir') ? path.join(tmpDir, 'atom-build')
buildDir = path.resolve(buildDir)
installDir = grunt.option('install-dir')
home = if process.platform is 'win32' then process.env.USERPROFILE else process.env.HOME
@@ -62,7 +63,6 @@ module.exports = (grunt) ->
installDir ?= process.env.INSTALL_PREFIX ? '/usr/local'
killCommand ='pkill -9 atom'
buildDir = path.resolve(buildDir)
installDir = path.resolve(installDir)
coffeeConfig =