mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Improve output of clear-recycle-bin.ps1
This commit is contained in:
parent
f12b44fb48
commit
b098205d9c
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user