Code cleanup

This commit is contained in:
Martin Stockhammer 2017-05-15 21:16:42 +02:00
parent ff4a0a097c
commit e7d742c23c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,6 @@ $urls = @{
foreach ($h in $urls.GetEnumerator()) {
$url = $h.Value
Write-Output "Downloading Driver $url"
$downloadFile = "$($baseDir)\$($h.Name)"
$downloadDir = Split-Path $downloadFile -Parent
@ -69,6 +68,7 @@ foreach ($h in $urls.GetEnumerator()) {
}
if ($Force -Or !(Test-Path -Path $downloadFile )){
Write-Output "Downloading Driver $url"
Invoke-WebRequest -Uri $url -OutFile $downloadFile
$shell = New-Object -ComObject shell.application