WIP don't overwrite config file if it exists

Depends on https://github.com/atom/season/pull/22
This commit is contained in:
Katrina Uychaco
2017-08-25 17:18:34 -07:00
parent 1dc5dec816
commit b494d0fb9e

View File

@@ -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, {})