From 9125956900afbdffc97e1c0026596f4f6b7f2565 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Thu, 28 Jul 2022 19:45:11 +0200 Subject: [PATCH] Done (I think)... --- Winget-AutoUpdate/functions/Update-App.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate/functions/Update-App.ps1 b/Winget-AutoUpdate/functions/Update-App.ps1 index ea30638..55cdefb 100644 --- a/Winget-AutoUpdate/functions/Update-App.ps1 +++ b/Winget-AutoUpdate/functions/Update-App.ps1 @@ -48,11 +48,12 @@ Function Update-App ($app) { #Check if mods exist for install/upgrade $ModsInstall, $ModsUpgrade = Test-Mods $($app.Id) - if (($ModsUpgrade) -and ($ModsMode = "Upgrade")) { + + if (($ModsUpgrade) -and ($ModsMode -eq "Upgrade")) { Write-Log "Modifications for $($app.Id) after upgrade are being applied..." "Yellow" & "$ModsUpgrade" } - elseif (($ModsInstall) -and ($ModsMode = "Install")) { + elseif (($ModsInstall) -and ($ModsMode -eq "Install")) { Write-Log "Modifications for $($app.Id) after install are being applied..." "Yellow" & "$ModsInstall" }