This commit is contained in:
Dmitry Shibanov
2020-02-11 11:08:28 +03:00
parent f2dcb083f8
commit 371369c4b2

View File

@@ -46,12 +46,12 @@ if (-not (Test-Path -Path $FireFoxDriverPath)) {
New-Item -Path $FireFoxDriverPath -ItemType "directory"
}
$DestFile = "$FireFoxDriverPath\$name"
$DestFile = "$FireFoxDriverPath\$DriversZipFile"
$EdgeDriverDownloadUrl = $geckodriverWindowsAsset.browser_download_url
try{
Invoke-WebRequest -Uri $EdgeDriverDownloadUrl -OutFile $DestFile
} catch {
Write-Error "[!] Failed to download $name"
Write-Error "[!] Failed to download $DriversZipFile"
exit 1
}