From 73bef5cf08ff9ba67555c8bb8ab0a58d3c407cf8 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 14 May 2017 21:14:36 +0200 Subject: [PATCH] Test --- src/ci/scripts/updateSeleniumDrivers.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 b/src/ci/scripts/updateSeleniumDrivers.ps1 index f96d5fb6f..a4380224d 100644 --- a/src/ci/scripts/updateSeleniumDrivers.ps1 +++ b/src/ci/scripts/updateSeleniumDrivers.ps1 @@ -32,6 +32,7 @@ param ( $psVersion = $PSVersionTable.PSVersion Write-Output "PS-Version: $psVersion" +Write-Output "Verbose: $Verbose, Force: $Force" $urls = @{ "iedriver\2.53.1\win64\DriverServer.zip"="http://selenium-release.storage.googleapis.com/2.53/IEDriverServer_x64_2.53.1.zip" @@ -49,8 +50,8 @@ foreach ($h in $urls.GetEnumerator()) { $downloadFile = "C:\jenkins\tools\$($h.Name)" $downloadDir = Split-Path $downloadFile -Parent - if ($Force -And (Test-Path -Path $downloadFile ) ) { - Remove-Item $downloadDir\* -recurse + if ($Force -And (Test-Path -Path $downloadDir ) ) { + Get-ChildItem -Path $downloadDir -Recurse | Remove-Item -force -recurse } if(!(Test-Path -Path $downloadDir )){ -- 2.39.5