fix: register apps when dir is missing (#6)
parent
47968146a8
commit
8abcd6f16e
|
@ -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' })
|
await fs.writeJSON(filename, registeredApps, { spaces: 2, EOL: '\n' })
|
||||||
|
|
Loading…
Reference in New Issue