Update Winget-Upgrade.ps1

pull/698/head
Romain 2024-09-13 23:55:51 +02:00
parent fd1e6c512a
commit 1fe7bb37a4
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ if (Test-Network) {
#Get Available Version
$Script:WAUAvailableVersion = Get-WAUAvailableVersion
#Compare
if ([version]$WAUAvailableVersion -gt [version]$WAUCurrentVersion) {
if ([version]$WAUAvailableVersion.replace("-n", "") -gt [version]$WAUCurrentVersion.replace("-n", "")) {
#If new version is available, update it
Write-ToLog "WAU Available version: $WAUAvailableVersion" "Yellow"
Update-WAU