From ae7a1b63cf414e692d2008ed9b2fff5c58d4a41f Mon Sep 17 00:00:00 2001 From: GAJ-san Date: Wed, 27 Jul 2022 12:00:41 +0200 Subject: [PATCH] More description --- Winget-AutoUpdate/functions/Update-App.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/functions/Update-App.ps1 b/Winget-AutoUpdate/functions/Update-App.ps1 index dc8b3a4..a586ad7 100644 --- a/Winget-AutoUpdate/functions/Update-App.ps1 +++ b/Winget-AutoUpdate/functions/Update-App.ps1 @@ -19,7 +19,7 @@ Function Update-App ($app) { #Run Winget Upgrade command & $Winget upgrade --id $($app.Id) --all --accept-package-agreements --accept-source-agreements -h | Tee-Object -file $LogFile -Append - #Check if mods exist + #Check if mods exist for upgrade $ModsInstall, $ModsUpgrade = Test-Mods $($app.Id) if ($ModsUpgrade) { Write-Log "Modifications for $($app.Id) after upgrade are being applied..." "Yellow" @@ -35,6 +35,7 @@ Function Update-App ($app) { #If app failed to upgrade, run Install command & $Winget install --id $($app.Id) --accept-package-agreements --accept-source-agreements -h | Tee-Object -file $LogFile -Append + #Check if mods exist for install $ModsInstall, $ModsUpgrade = Test-Mods $($app.Id) if ($ModsInstall) { Write-Log "Modifications for $($app.Id) after install are being applied..." "Yellow"