Skip to content

Commit 1b84fe0

Browse files
Ash258r15ch13
authored andcommitted
fix(bin): Checkhashes downloading twice when architecture properties does hot have url property (#3479)
1 parent a775d45 commit 1b84fe0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/checkhashes.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ foreach ($single in Get-ChildItem $Dir "$App.json") {
7070
$urls = @()
7171
$hashes = @()
7272

73-
if ($manifest.architecture) {
73+
if ($manifest.url) {
74+
$manifest.url | ForEach-Object { $urls += $_ }
75+
$manifest.hash | ForEach-Object { $hashes += $_ }
76+
} elseif ($manifest.architecture) {
7477
# First handle 64bit
7578
url $manifest '64bit' | ForEach-Object { $urls += $_ }
7679
hash $manifest '64bit' | ForEach-Object { $hashes += $_ }
7780
url $manifest '32bit' | ForEach-Object { $urls += $_ }
7881
hash $manifest '32bit' | ForEach-Object { $hashes += $_ }
79-
} elseif ($manifest.url) {
80-
$manifest.url | ForEach-Object { $urls += $_ }
81-
$manifest.hash | ForEach-Object { $hashes += $_ }
8282
} else {
8383
err $name 'Manifest does not contain URL property.'
8484
continue

0 commit comments

Comments
 (0)