move directories to other folder

This commit is contained in:
Dmitry Shibanov
2020-02-12 18:02:47 +03:00
parent d72263d6c1
commit e4cee0c527
2 changed files with 13 additions and 8 deletions

View File

@@ -4,7 +4,6 @@
################################################################################
Import-Module -Name ImageHelpers -Force
Import-Module -Name PathHelpers -Force
$temp_install_dir = 'C:\Windows\Installer'
New-Item -Path $temp_install_dir -ItemType Directory -Force
@@ -47,9 +46,9 @@ if (-not (Test-Path -Path $FireFoxDriverPath)) {
}
$DestFile = Join-Path $FireFoxDriverPath $DriversZipFile
$EdgeDriverDownloadUrl = $geckodriverWindowsAsset.browser_download_url
$FireFoxDriverDownloadUrl = $geckodriverWindowsAsset.browser_download_url
try{
Invoke-WebRequest -Uri $EdgeDriverDownloadUrl -OutFile $DestFile
Invoke-WebRequest -Uri $FireFoxDriverDownloadUrl -OutFile $DestFile
} catch {
Write-Error "[!] Failed to download $DriversZipFile"
exit 1