From ac870b4e8230d5da032eb7a7c171e69db7cb1fe6 Mon Sep 17 00:00:00 2001 From: ek-dyoder Date: Wed, 4 Mar 2026 18:11:28 -0500 Subject: [PATCH] fix: correct syntax for Test-Path condition in DNS helper URL selection --- Fix-UpdateLocalHosts.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fix-UpdateLocalHosts.ps1 b/Fix-UpdateLocalHosts.ps1 index 4a99be0..13a466a 100644 --- a/Fix-UpdateLocalHosts.ps1 +++ b/Fix-UpdateLocalHosts.ps1 @@ -1,7 +1,7 @@ $DNSHelper = $Global:ToolsDirectory + '\ekdns.exe' If ( !(Test-Path $DNSHelper) ) { $DNSHelperURL = 'https://www.emberkom.com/tools/ekdns-x64.exe' - If !(Test-Path ${Env:ProgramFiles(x86)}) { + If (!(Test-Path ${Env:ProgramFiles(x86)})) { $DNSHelperURL = 'https://www.emberkom.com/tools/ekdns-x86.exe' } Download-File -URL $DNSHelperURL -File $DNSHelper