Update windev.ps1 (#3016)

Update the text if no pre-release is found and change the text color from red to yellow to mark this as a warning instead of an error
This commit is contained in:
Martin Wiethan 2024-11-07 01:33:17 +01:00 committed by GitHub
parent e0889d51db
commit aa0b03feda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ function RedirectToLatestPreRelease {
if ($latestRelease) {
$url = "https://github.com/ChrisTitusTech/winutil/releases/download/$latestRelease/winutil.ps1"
} else {
Write-Host 'Unable to determine latest pre-release version.' -ForegroundColor Red
Write-Host 'No pre-release version found. This is most likely because the latest release is a full release and no newer pre-release exists.' -ForegroundColor Yellow
Write-Host "Using latest Full Release"
$url = "https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1"
}