mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
WIP don't overwrite config file if it exists
Depends on https://github.com/atom/season/pull/22
This commit is contained in:
@@ -851,6 +851,8 @@ class Config
|
||||
|
||||
console.log 'loadUserConfig'
|
||||
try
|
||||
# fs.makeTreeSync(path.dirname(@configFilePath))
|
||||
# CSON.writeFileSync(@configFilePath, {flag: 'x'}, {}) # fails if file exists
|
||||
unless fs.existsSync(@configFilePath)
|
||||
fs.makeTreeSync(path.dirname(@configFilePath))
|
||||
CSON.writeFileSync(@configFilePath, {})
|
||||
|
||||
Reference in New Issue
Block a user