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 {
4
4
5
5
$newSystemFiles = Compare-Object - ReferenceObject $script :initialSystemState - DifferenceObject $currentSystemState - Property FullName | Where-Object {$_.SideIndicator -eq " =>" }
6
6
$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
+ }
7
11
$newSystemFiles + $newUserFiles | ForEach-Object {
12
+ Write-Host " Removing $ ( $_.FullName ) "
8
13
Remove-Item - Path $_.FullName - Force
9
14
}
10
15
}
You can’t perform that action at this time.
0 commit comments