Skip to content

Commit 1f8b0c0

Browse files
committed
Merge pull request #162 from Jackbennett/scripts
Minor changes for #152
2 parents b0b8eae + cf74dba commit 1f8b0c0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: scripts/build.ps1

+8-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ function Ensure-Executable ($command) {
5656
}
5757

5858
function Delete-Existing ($path) {
59-
Write-Verbose "Remove $path"
59+
Write-Verbose "Removing $path in $(get-location)"
6060
Remove-Item -Recurse -force $path -ErrorAction SilentlyContinue
61+
if(test-path $path -IsValid){
62+
Write-Verbose " Removed: $true"
63+
} else {
64+
Write-Verbose " Removed: $false"
65+
}
6166
}
6267

6368
# Check for archives that were not extracted correctly
@@ -87,7 +92,7 @@ Push-Location -Path $saveTo
8792
$sources = Get-Content $sourcesPath | Out-String | Convertfrom-Json
8893

8994
foreach ($s in $sources) {
90-
Write-Host "Getting $($s.name) from URL $($s.url)"
95+
Write-Output "Getting $($s.name) from URL $($s.url)"
9196

9297
# We do not care about the extensions/type of archive
9398
$tempArchive = "$($s.name).tmp"
@@ -104,4 +109,4 @@ foreach ($s in $sources) {
104109
}
105110

106111
Pop-Location
107-
Write-Host "All good and done!"
112+
Write-Output "All good and done!"

0 commit comments

Comments
 (0)