fix: correct syntax for Test-Path condition in DNS helper URL selection

This commit is contained in:
2026-03-04 18:11:28 -05:00
parent a9ff804048
commit ac870b4e82
+1 -1
View File
@@ -1,7 +1,7 @@
$DNSHelper = $Global:ToolsDirectory + '\ekdns.exe' $DNSHelper = $Global:ToolsDirectory + '\ekdns.exe'
If ( !(Test-Path $DNSHelper) ) { If ( !(Test-Path $DNSHelper) ) {
$DNSHelperURL = 'https://www.emberkom.com/tools/ekdns-x64.exe' $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' $DNSHelperURL = 'https://www.emberkom.com/tools/ekdns-x86.exe'
} }
Download-File -URL $DNSHelperURL -File $DNSHelper Download-File -URL $DNSHelperURL -File $DNSHelper