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
|
return $latestRelease.tag_name
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host "Error fetching release data: $_" -ForegroundColor Red
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,4 +39,4 @@ function RedirectToLatestPreRelease {
|
|||||||
|
|
||||||
# Call the redirect function
|
# Call the redirect function
|
||||||
|
|
||||||
RedirectToLatestPreRelease
|
RedirectToLatestPreRelease
|
||||||
|
Loading…
Reference in New Issue
Block a user