Display Winget Version in logs

pull/46/head
Romain 2022-04-08 18:37:59 +02:00
parent d85672956d
commit 66175a23b0
2 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,12 @@ function Get-WingetOutdatedApps {
#Run winget to list apps and accept source agrements (necessary on first run)
& $Winget list --accept-source-agreements | Out-Null
#Log Winget installed version
$WingerVer = & $Winget --version
Write-Log "Winget Version: $WingerVer"
#Get list of available upgrades on winget format
Write-Log "Checking application updates on Winget Repository..." "yellow"
$upgradeResult = & $Winget upgrade | Out-String
#Start Convertion of winget format to an array. Check if "-----" exists

View File

@ -45,7 +45,6 @@ if (Test-Network){
}
#Get outdated Winget packages
Write-Log "Checking application updates on Winget Repository..." "yellow"
$outdated = Get-WingetOutdatedApps
#Log list of app to update