mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 09:50:36 -06:00
Redirect dev to latest Fulll Release if can't catch prerelease
This commit is contained in:
parent
b47036630c
commit
f838e805f3
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user