mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 18:00:37 -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user