From 4268d43c8d5a91422965b80051cbcabade6a4829 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 17 Jun 2019 22:46:39 +0300 Subject: Fix build script --- download.ps1 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/download.ps1 b/download.ps1 index b77b8f5..4abe754 100644 --- a/download.ps1 +++ b/download.ps1 @@ -24,11 +24,9 @@ Write-Output "Target: $target" Write-Output "Target dir: $targetdir" Write-Output "Log file: $logfile" -# $client = New-Object System.Net.WebClient -# $client.DownloadFile($url, $target) +$client = New-Object System.Net.WebClient +$client.DownloadFile($url, $target) -# ((Get-Content -path unattend.xml.in -raw) -replace 'TARGET_DIR',$targetdir) | Set-Content -path unattend.xml - -# & "$target" /quiet /log "$logfile" +((Get-Content -path unattend.xml.in -raw) -replace 'TARGET_DIR',$targetdir) | Set-Content -path unattend.xml Start-Process -FilePath "$target" -ArgumentList "/quiet","/log","$logfile" -Wait -- cgit v1.2.3