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

@@ -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)