1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 22:56:09 +09:00

fix: register apps when dir is missing (#6)

This commit is contained in:
patak 2022-11-15 22:22:15 +01:00 committed by GitHub
parent 47968146a8
commit 8abcd6f16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,4 +43,7 @@ for (const server of KNOWN_SERVERS) {
}
}
if (!fs.existsSync('public'))
await fs.mkdir('public')
await fs.writeJSON(filename, registeredApps, { spaces: 2, EOL: '\n' })