diff --git a/Winget-AutoUpdate/functions/Get-WAUCurrentVersion.ps1 b/Winget-AutoUpdate/functions/Get-WAUCurrentVersion.ps1 index f635473..2e293ed 100644 --- a/Winget-AutoUpdate/functions/Get-WAUCurrentVersion.ps1 +++ b/Winget-AutoUpdate/functions/Get-WAUCurrentVersion.ps1 @@ -2,5 +2,4 @@ function Get-WAUCurrentVersion{ #Get current installed version [xml]$About = Get-Content "$WorkingDir\config\about.xml" -Encoding UTF8 -ErrorAction SilentlyContinue $Script:WAUCurrentVersion = $About.app.version - Write-Log "WAU Current version : $WAUCurrentVersion" } \ No newline at end of file diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index a9c2c21..fb2e98c 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -27,8 +27,12 @@ if (Test-Network){ #Compare if ($WAUAvailableVersion -gt $WAUCurrentVersion){ #If new version is available, update it + Write-Log "WAU Current version: $WAUCurrentVersion - Available version: $WAUAvailableVersion" "Yellow" Update-WAU } + else{ + Write-Log "WAU Current version : $WAUCurrentVersion - Up to date." "Green" + } } #Get exclude apps list