Verify platform inside command installer

This commit is contained in:
probablycorey
2014-01-22 14:54:01 -08:00
parent 19e0854036
commit 9169e9e227
2 changed files with 2 additions and 1 deletions

View File

@@ -249,7 +249,6 @@ class Atom extends Model
# Private: Call this method when establishing a real application window.
startEditorWindow: ->
if process.platform is 'darwin'
CommandInstaller = require './command-installer'
CommandInstaller.installAtomCommand (error) -> console.warn error.message if error?
CommandInstaller.installApmCommand (error) -> console.warn error.message if error?

View File

@@ -27,6 +27,8 @@ module.exports =
"/usr/local/bin"
install: (commandPath, callback) ->
return unless process.platform is 'darwin'
commandName = path.basename(commandPath, path.extname(commandPath))
directory = @getInstallDirectory()
if fs.existsSync(directory)