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