Don't throw an error when ATOM_HOME does not exist

This commit is contained in:
Antonio Scandurra
2016-08-03 15:59:00 +02:00
parent a56db9a03e
commit 45afe07dc1

View File

@@ -113,9 +113,11 @@ function setupAtomHome ({setPortable}) {
try {
atomHome = fs.realpathSync(atomHome)
} finally {
process.env.ATOM_HOME = atomHome
} catch (e) {
// Don't throw an error if atomHome doesn't exist.
}
process.env.ATOM_HOME = atomHome
}
function setupCompileCache () {