mirror of https://github.com/apache/archiva.git
Code cleanup
This commit is contained in:
parent
ff4a0a097c
commit
e7d742c23c
|
@ -56,7 +56,6 @@ $urls = @{
|
||||||
|
|
||||||
foreach ($h in $urls.GetEnumerator()) {
|
foreach ($h in $urls.GetEnumerator()) {
|
||||||
$url = $h.Value
|
$url = $h.Value
|
||||||
Write-Output "Downloading Driver $url"
|
|
||||||
$downloadFile = "$($baseDir)\$($h.Name)"
|
$downloadFile = "$($baseDir)\$($h.Name)"
|
||||||
$downloadDir = Split-Path $downloadFile -Parent
|
$downloadDir = Split-Path $downloadFile -Parent
|
||||||
|
|
||||||
|
@ -69,6 +68,7 @@ foreach ($h in $urls.GetEnumerator()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Force -Or !(Test-Path -Path $downloadFile )){
|
if ($Force -Or !(Test-Path -Path $downloadFile )){
|
||||||
|
Write-Output "Downloading Driver $url"
|
||||||
Invoke-WebRequest -Uri $url -OutFile $downloadFile
|
Invoke-WebRequest -Uri $url -OutFile $downloadFile
|
||||||
|
|
||||||
$shell = New-Object -ComObject shell.application
|
$shell = New-Object -ComObject shell.application
|
||||||
|
|
Loading…
Reference in New Issue