File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ Function Invoke-CleanupTempFiles {
44
55 $newSystemFiles = Compare-Object -ReferenceObject $script:initialSystemState -DifferenceObject $currentSystemState -Property FullName | Where-Object {$_.SideIndicator -eq "=>"}
66 $newUserFiles = Compare-Object -ReferenceObject $script:initialUserState -DifferenceObject $currentUserState -Property FullName | Where-Object {$_.SideIndicator -eq "=>"}
7+ $tempFiles = $newSystemFiles + $newUserFiles
8+ if($tempFiles.Count -gt 0) {
9+ Write-Host "Cleaning up temporary files"
10+ }
711 $newSystemFiles + $newUserFiles | ForEach-Object {
12+ Write-Host "Removing $($_.FullName)"
813 Remove-Item -Path $_.FullName -Force
914 }
1015}
You can’t perform that action at this time.
0 commit comments