From 30fbc4aa5cfe44a7bb7ee6cd93528eb47f7745f7 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Sun, 22 Dec 2024 17:01:53 +0100 Subject: [PATCH] Fix linting --- download-libzim.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/download-libzim.js b/download-libzim.js index 8c534c3..4239c69 100644 --- a/download-libzim.js +++ b/download-libzim.js @@ -22,7 +22,7 @@ const isAvailableArch = if (!isMacOS && !isLinux && !isWindows) { console.warn( - `\x1b[41m\n================================ README \n\nPre-built binaries only available on GNU/Linux, macOS and Windows for now...\nPlease ensure you have libzim installed globally on this machine:\n\n\thttps://github.com/openzim/libzim/\n\n================================\x1b[0m\n`, + `\x1b[41m\n================================ README \n\nPre-built binaries only available on GNU/Linux, macOS and Windows for now...\nPlease ensure you have libzim installed globally on this machine:\n\n\thttps://github.com/openzim/libzim/\n\n================================\x1b[0m\n`, ); } if (!isAvailableArch) { @@ -45,7 +45,7 @@ if (rawArch !== "x64") { let fileExtension = isWindows ? "zip" : "tar.gz"; const urls = [ - `https://download.openzim.org/release/libzim/libzim_${osPrefix}-${osArch}-${process.env.LIBZIM_VERSION}.${fileExtension}`, + `https://download.openzim.org/release/libzim/libzim_${osPrefix}-${osArch}-${process.env.LIBZIM_VERSION}.${fileExtension}`, ].filter((a) => a); for (let url of urls) { @@ -73,7 +73,9 @@ for (let url of urls) { }); }) .then(() => { - const cmd = isWindows ? `unzip ${dlFile} -d ./download` : `tar --strip-components 1 -xf ${dlFile} -C ./download`; + const cmd = isWindows + ? `unzip ${dlFile} -d ./download` + : `tar --strip-components 1 -xf ${dlFile} -C ./download`; console.log(`Running Extract:`, `[${cmd}]`); return exec(cmd); })