Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 18, 2024
1 parent 164ee09 commit c727fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/install-geckodriver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c727fd8

Please sign in to comment.