mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-15 11:55:01 +02:00
Improve output of clear-recycle-bin.ps1
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
|
||||
try {
|
||||
Clear-RecycleBin -Confirm:$false
|
||||
"✔️ recycle bin have been emptied"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user