mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-09 06:33:51 -05:00
Redirect dev to latest Fulll Release if can't catch prerelease
This commit is contained in:
@ -20,7 +20,9 @@ function Get-LatestRelease {
|
||||
return $latestRelease.tag_name
|
||||
} catch {
|
||||
Write-Host "Error fetching release data: $_" -ForegroundColor Red
|
||||
return $null
|
||||
Write-Host "Redirecting to latest Full Release"
|
||||
$latestRelease = "releases/latest/download"
|
||||
return $latestRelease.tag_name
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user