This commit is contained in:
Kevin Sawicki
2015-11-03 18:03:49 -08:00
parent 7cd44dc729
commit 8dee7e6a65

View File

@@ -12,7 +12,7 @@ class AtomPortable
fs.copySync(existingAtomHome, @getPortableAtomHomePath())
@isPortableInstall: (platform, environmentAtomHome, defaultHome) ->
return false unless platform is 'win32' or platform is 'linux'
return false unless platform in ['linux', 'win32']
return false if environmentAtomHome
return false if not fs.existsSync(@getPortableAtomHomePath())
# currently checking only that the directory exists and is writable,