💬 Correct comments and logs

This commit is contained in:
trickypr 2022-11-15 12:33:19 +11:00
parent 97a87f5eb4
commit e79d4b099c

View file

@ -120,12 +120,11 @@ export async function downloadInternals(version: string) {
process.exit(1)
}
// If the engine directory is empty, we should delete its contents
// If the engine directory is empty, we should delete it.
const engineIsEmpty = await readdir(ENGINE_DIR).then((files) => files.length === 0)
if (existsSync(ENGINE_DIR) && engineIsEmpty) {
log.info("'engine/' is empty, deleting contents...")
log.info("'engine/' is empty, it...")
rmSync(ENGINE_DIR, { recursive: true })
}
if (!existsSync(ENGINE_DIR)) {