From b62d7bb6987c1219426f1499d82323b51ec2633c Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 11 Aug 2024 21:50:03 +0300 Subject: [PATCH] Prevent build script for creating a parent folder --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index 35b43db..c3b7390 100755 --- a/build.js +++ b/build.js @@ -41,7 +41,7 @@ const updateTranslations = async () => { }; const createZipFile = async (fileName, path) => { - await exec(`tar -a -cf ${fileName} ${path}/*`); + await exec(`cd ${path} && tar -a -cf ../${fileName} * && cd ..`); }; (async() => {