Skip to content

Commit 3b455e4

Browse files
committed
Add debug output when downloading files
1 parent 6884464 commit 3b455e4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

run.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Write-Output "Install PHP $phpversion ..."
8585
$temp = New-TemporaryFile | Rename-Item -NewName {$_.Name + ".zip"} -PassThru
8686
$fname = "php-$phpversion-$tspart-$vs-$arch.zip"
8787
$url = "$baseurl/$fname"
88+
Write-Output "Downloading $url ..."
8889
Invoke-WebRequest $url -OutFile $temp
8990
Expand-Archive $temp "php-bin"
9091

@@ -93,6 +94,7 @@ Write-Output "Install development pack ..."
9394
$temp = New-TemporaryFile | Rename-Item -NewName {$_.Name + ".zip"} -PassThru
9495
$fname = "php-devel-pack-$phpversion-$tspart-$vs-$arch.zip"
9596
$url = "$baseurl/$fname"
97+
Write-Output "Downloading $url ..."
9698
Invoke-WebRequest $url -OutFile $temp
9799
Expand-Archive $temp "."
98100
Rename-Item "php-$phpversion-devel-$vs-$arch" "php-dev"
@@ -105,9 +107,11 @@ if ($deps.Count -gt 0) {
105107
foreach ($dep in $deps) {
106108
foreach ($line in ($series.Content -Split "[\r\n]+")) {
107109
if ($line -match "^$dep") {
108-
Write-Output "Install $line"
110+
Write-Output "Install $line ..."
109111
$temp = New-TemporaryFile | Rename-Item -NewName {$_.Name + ".zip"} -PassThru
110-
Invoke-WebRequest "$baseurl/$vs/$arch/$line" -OutFile $temp
112+
$url = "$baseurl/$vs/$arch/$line"
113+
Write-Output "Downloading $url ..."
114+
Invoke-WebRequest $url -OutFile $temp
111115
Expand-Archive $temp "../deps"
112116
$installed = $true
113117
break

0 commit comments

Comments
 (0)