Install cli to /opt/boxen if it exists

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-02-25 12:40:59 -08:00
parent f3dac141ff
commit 99c1819ceb
2 changed files with 11 additions and 2 deletions

View File

@@ -40,7 +40,11 @@ window.setUpEnvironment = ->
# This method is only called when opening a real application window
window.startup = ->
installAtomCommand('/opt/github/bin/atom')
if fs.isDirectory('/opt/boxen')
installAtomCommand('/opt/boxen/bin/atom')
else
installAtomCommand('/opt/github/bin/atom')
handleWindowEvents()
config.load()
atom.loadTextPackage()