fix dist exist check

This commit is contained in:
SrGooglo 2025-02-19 19:57:01 +00:00
parent 075743e8be
commit 24a4a9c27a

View File

@ -56,7 +56,7 @@ class WebWrapper extends Server {
}
async updateDistApp() {
if (!fs.existsSync(WebWrapper.appDistPath)) {
if (fs.existsSync(WebWrapper.appDistPath)) {
await fs.promises.rm(WebWrapper.appDistPath, { recursive: true })
}