File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,13 @@ function Ensure-Executable ($command) {
56
56
}
57
57
58
58
function Delete-Existing ($path ) {
59
- Write-Verbose " Remove $path "
59
+ Write-Verbose " Removing $path in $ ( get-location ) "
60
60
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
+ }
61
66
}
62
67
63
68
# Check for archives that were not extracted correctly
@@ -87,7 +92,7 @@ Push-Location -Path $saveTo
87
92
$sources = Get-Content $sourcesPath | Out-String | Convertfrom-Json
88
93
89
94
foreach ($s in $sources ) {
90
- Write-Host " Getting $ ( $s.name ) from URL $ ( $s.url ) "
95
+ Write-Output " Getting $ ( $s.name ) from URL $ ( $s.url ) "
91
96
92
97
# We do not care about the extensions/type of archive
93
98
$tempArchive = " $ ( $s.name ) .tmp"
@@ -104,4 +109,4 @@ foreach ($s in $sources) {
104
109
}
105
110
106
111
Pop-Location
107
- Write-Host " All good and done!"
112
+ Write-Output " All good and done!"
You can’t perform that action at this time.
0 commit comments