major update to override Write-Output func

This commit is contained in:
2023-10-05 13:11:38 -04:00
parent 31a06a9206
commit bbb4884818
52 changed files with 377 additions and 378 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ ForEach ( $path in $RevitLocalPaths ) {
# Only remove Revit local files that have worksharing enabled
If ( (Test-Path "${revitfile}") -and (Test-Path "${BackupDir}")) {
LogMsg "Deleting ""${revitfile}"" and backup directory ""${BackupDir}"""
Write-Output "Deleting ""${revitfile}"" and backup directory ""${BackupDir}"""
Remove-Item "${revitfile}" -Force -ErrorAction SilentlyContinue
Remove-Item "${BackupDir}" -Recurse -ErrorAction SilentlyContinue
}