Delete correct apm symlink when installing

This commit is contained in:
Kevin Sawicki
2014-04-02 13:41:44 -07:00
parent a3789411de
commit 93d9a00819

View File

@@ -33,8 +33,7 @@ module.exports = (grunt) ->
# Create relative symbol link for apm.
process.chdir(binDir)
apmSymlinkPath = path.join('..', '..', 'share', 'atom', 'resources', 'app', 'apm', 'node_modules', '.bin', 'apm')
rm(apmSymlinkPath)
fs.symlinkSync(apmSymlinkPath, 'apm')
rm('apm')
fs.symlinkSync(path.join('..', '..', 'share', 'atom', 'resources', 'app', 'apm', 'node_modules', '.bin', 'apm'), 'apm')
fs.chmodSync(path.join(shareDir, 'atom'), "755")