Repository: archiva Updated Branches: refs/heads/citest c54e39dba -> 73bef5cf0
Test Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/73bef5cf Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/73bef5cf Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/73bef5cf Branch: refs/heads/citest Commit: 73bef5cf08ff9ba67555c8bb8ab0a58d3c407cf8 Parents: c54e39d Author: Martin Stockhammer <[email protected]> Authored: Sun May 14 21:14:36 2017 +0200 Committer: Martin Stockhammer <[email protected]> Committed: Sun May 14 21:14:36 2017 +0200 ---------------------------------------------------------------------- src/ci/scripts/updateSeleniumDrivers.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/73bef5cf/src/ci/scripts/updateSeleniumDrivers.ps1 ---------------------------------------------------------------------- diff --git a/src/ci/scripts/updateSeleniumDrivers.ps1 b/src/ci/scripts/updateSeleniumDrivers.ps1 index f96d5fb..a438022 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 )){
