From f838e805f363a13e36920c51fcdbbbf2acd33cd8 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Sat, 29 Jun 2024 15:15:16 +0200 Subject: [PATCH] Redirect dev to latest Fulll Release if can't catch prerelease --- windev.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windev.ps1 b/windev.ps1 index 2efc3e77..bce34401 100644 --- a/windev.ps1 +++ b/windev.ps1 @@ -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 } } @@ -37,4 +39,4 @@ function RedirectToLatestPreRelease { # Call the redirect function -RedirectToLatestPreRelease \ No newline at end of file +RedirectToLatestPreRelease