From fe6017240dcff17432087296ebda0fd11eec2e22 Mon Sep 17 00:00:00 2001 From: SuspiciousActivity <38253929+SuspiciousActivity@users.noreply.github.com> Date: Fri, 1 Jul 2022 14:58:56 +0200 Subject: [PATCH] fix and statement --- vallc.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vallc.ps1 b/vallc.ps1 index a8f90e3..b6d7945 100644 --- a/vallc.ps1 +++ b/vallc.ps1 @@ -229,7 +229,7 @@ try { $lastPatchUrl = '' # check if both lang files exist, if not download - if (Test-Path (-join($savePath, 'url.txt')) -and (!(Test-Path (-join($savePath, $savePakPath, $config.textLang, '_Text-WindowsClient.pak'))) -or !(Test-Path (-join($savePath, $savePakPath, $config.voiceLang, '_Text-WindowsClient.pak'))))) { + if ((Test-Path (-join($savePath, 'url.txt'))) -and (!(Test-Path (-join($savePath, $savePakPath, $config.textLang, '_Text-WindowsClient.pak'))) -or !(Test-Path (-join($savePath, $savePakPath, $config.voiceLang, '_Text-WindowsClient.pak'))))) { Remove-Item (-join($savePath, 'url.txt')) }