Update Winget-Upgrade.ps1
parent
fd1e6c512a
commit
1fe7bb37a4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue