mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Merge pull request #12306 from atom/as-fix-missing-atom-home-path
Don't throw an error when $ATOM_HOME does not exist
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user