Done (I think)...

pull/134/head
KnifMelti 2022-07-28 19:45:11 +02:00
parent 5123ea8ca2
commit 9125956900
1 changed files with 3 additions and 2 deletions

View File

@ -48,11 +48,12 @@ Function Update-App ($app) {
#Check if mods exist for install/upgrade #Check if mods exist for install/upgrade
$ModsInstall, $ModsUpgrade = Test-Mods $($app.Id) $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" Write-Log "Modifications for $($app.Id) after upgrade are being applied..." "Yellow"
& "$ModsUpgrade" & "$ModsUpgrade"
} }
elseif (($ModsInstall) -and ($ModsMode = "Install")) { elseif (($ModsInstall) -and ($ModsMode -eq "Install")) {
Write-Log "Modifications for $($app.Id) after install are being applied..." "Yellow" Write-Log "Modifications for $($app.Id) after install are being applied..." "Yellow"
& "$ModsInstall" & "$ModsInstall"
} }