Fixed checking path for unzip output...
This commit is contained in:
parent
06fcfb65ac
commit
c3b09f96c9
|
@ -67,7 +67,7 @@ export function downloadEssentialData() {
|
||||||
|
|
||||||
exec(
|
exec(
|
||||||
`unzip -o ${process.env.DDNET_SQLITE_PATH ? `${process.env.DDNET_SQLITE_PATH}.zip` : 'data/ddnet.sqlite.zip'} \
|
`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 => {
|
err => {
|
||||||
if (err) {
|
if (err) {
|
||||||
log("Error while unzipping!")
|
log("Error while unzipping!")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user