From c3b09f96c9a61b15ee266f2161c10ae926e48191 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Tue, 2 Nov 2021 09:58:10 +0100 Subject: [PATCH] Fixed checking path for unzip output... --- libs/download/dowload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/download/dowload.js b/libs/download/dowload.js index 88f2573..5addf4a 100644 --- a/libs/download/dowload.js +++ b/libs/download/dowload.js @@ -67,7 +67,7 @@ export function downloadEssentialData() { exec( `unzip -o ${process.env.DDNET_SQLITE_PATH ? `${process.env.DDNET_SQLITE_PATH}.zip` : 'data/ddnet.sqlite.zip'} \ - -d ${process.env.DDNET_SQLITE_PATH.replace(/\/[\s\S]*\.sqlite/, "") ?? 'data'}`, + -d ${process.env.DDNET_SQLITE_PATH ? process.env.DDNET_SQLITE_PATH.replace(/\/[\s\S]*\.sqlite/, "") : 'data'}`, err => { if (err) { log("Error while unzipping!")