From fcb8169c0ccdabef8cabdefd55ea675f1551ca17 Mon Sep 17 00:00:00 2001 From: Greelan <53196309+Greelan@users.noreply.github.com> Date: Fri, 3 Nov 2023 08:45:43 +1100 Subject: [PATCH] Simplify Windows script --- arma3start.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arma3start.json b/arma3start.json index 3eac818..f0a1a6d 100644 --- a/arma3start.json +++ b/arma3start.json @@ -27,7 +27,7 @@ "UpdateSourcePlatform":"Windows", "UpdateSource":"Executable", "UpdateSourceData":"cmd.exe", - "UpdateSourceArgs":"/C start powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command \"$mod = '{{mod}}' -split ';'; Set-Location arma3\\233780; Get-ChildItem -Path 'keys' -Filter '*.bikey' | ForEach-Object { if ($_.Name -ne 'a3.bikey' -and -not ($_.Name -like '*a3.bikey*')) { Remove-Item -LiteralPath $_.FullName -Force } }; foreach ($a in $mod) { Get-ChildItem -Path ('{0}\\keys' -f $a) -Filter '*.bikey' | Copy-Item -Destination 'keys' -Force }\"", + "UpdateSourceArgs":"/C start powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command \"$mod = '{{mod}}' -split ';'; Set-Location arma3\\233780; Get-ChildItem -Path 'keys' -Filter '*.bikey' -Exclude 'a3.bikey' | ForEach-Object { Remove-Item -LiteralPath $_.FullName -Force }; foreach ($a in $mod) { Get-ChildItem -Path ('{0}\\keys' -f $a) -Filter '*.bikey' | Copy-Item -Destination 'keys' -Force }\"", "UpdateSourceConditionSetting":"ManageBikeys", "UpdateSourceConditionValue":"true" },