From b5f911cae8ffdba91aa9be1db8e3466abdb0f30c Mon Sep 17 00:00:00 2001 From: Hysterelius <71912794+Hysterelius@users.noreply.github.com> Date: Sat, 29 Jun 2024 17:46:29 +1000 Subject: [PATCH] Fix bug in package_abridge.js --- package_abridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_abridge.js b/package_abridge.js index ec1a7610..137fccc5 100644 --- a/package_abridge.js +++ b/package_abridge.js @@ -36,7 +36,7 @@ const pwa_BASE_CACHE_FILES = data.extra.pwa_BASE_CACHE_FILES; // This is used to pass arguments to zola via npm, for example: // npm run abridge -- "--base-url https://abridge.pages.dev" -const args = (' '+process.argv[2] || ''); +const args = process.argv[2] ? ' '+process.argv[2] : ''; async function execWrapper(cmd) { const { stdout, stderr } = await execPromise(cmd);