major update to override Write-Output func
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user