Skip to content

Commit

Permalink
chore: update powershell script
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthalles committed Oct 13, 2023
1 parent dcd8063 commit c6b0877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git.io.ps1
Expand Up @@ -99,7 +99,7 @@ $releases = "https://api.github.com/repos/$GitHubRepo/releases/latest"
$latest = (Invoke-WebRequest -Uri $releases -UseBasicParsing -ErrorAction Stop | ConvertFrom-Json)[0]
$tagName = $latest.tag_name
$latestAssets = $latest.assets
$latestBin = $latestAssets | Where-Object { $_.name -match "^$($fileMask).exe" }
$latestBin = $latestAssets | Where-Object { $_.name -match "^$($fileMask)" }
$latestZip = $latestAssets | Where-Object { $_.name -match "^$($fileMask).zip" }
$matchedAsset = @($latestZip, $latestBin).Where({ ![String]::IsNullOrEmpty($_) }, "First")
$downloadUrl = $matchedAsset.browser_download_url
Expand Down

0 comments on commit c6b0877

Please sign in to comment.