Display Winget Version in logs
parent
d85672956d
commit
66175a23b0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue