This commit is contained in:
Izuco 2022-03-25 19:33:51 +01:00
parent 0218356073
commit 78d999f2d4
No known key found for this signature in database
GPG key ID: E9CBE9E4EF3A1BFA

View file

@ -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`))