fix: correct syntax for Test-Path condition in DNS helper URL selection
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user