Fix #292
This commit is contained in:
parent
0218356073
commit
78d999f2d4
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ const tokenFile = {
|
|||
};
|
||||
|
||||
export const ensureConfig = () => {
|
||||
if (!fs.existsSync(path.join(workingDir, 'config')))
|
||||
fs.mkdirSync(path.join(workingDir, 'config'));
|
||||
if (process.env.contentDirectory)
|
||||
[binCfgFile, dirCfgFile, cliCfgFile].forEach(a => {
|
||||
if (!fs.existsSync(`${a}.yml`))
|
||||
|
|
|
|||
Loading…
Reference in a new issue