From c727fd8452a176b4f6e6eecfd5baed579790c222 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Wed, 18 Sep 2024 11:29:47 +0200 Subject: [PATCH] fix --- scripts/install-geckodriver.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install-geckodriver.mjs b/scripts/install-geckodriver.mjs index fc29d5a..5f57717 100644 --- a/scripts/install-geckodriver.mjs +++ b/scripts/install-geckodriver.mjs @@ -196,8 +196,7 @@ function selectAsset(release) { const nameWoExt = asset.name.replace(EXT_REGEXP, ''); if ( (dstArch === 'aarch64' && _.endsWith(nameWoExt, `-${dstArch}`)) - || ('64' === dstArch && _.endsWith(nameWoExt, dstArch)) - || ('32' === dstArch && _.endsWith(nameWoExt, dstArch)) + || (['64', '32'].includes(dstArch) && _.endsWith(nameWoExt, `-${dstPlatform}${dstArch}`)) ) { candidates.push(asset); }