Skip to content

Commit

Permalink
fix(scoop-info): Fix download size estimating
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven committed May 11, 2024
1 parent 1dd479f commit f6d0e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/scoop-info.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if ($status.installed) {
$cached = $null
}

[int]$urlLength = (Invoke-WebRequest $url -Method Head).Headers.'Content-Length'[0]
$urlLength = (Invoke-WebRequest $url -Method Head).Headers.'Content-Length' | ForEach-Object { [int]$_ }
$totalPackage += $urlLength
} catch [System.Management.Automation.RuntimeException] {
$totalPackage = 0
Expand Down

0 comments on commit f6d0e3e

Please sign in to comment.