Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
oskaritimperi committed Jun 17, 2019
1 parent c08ffc7 commit 4268d43
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4268d43

Please sign in to comment.