about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf/lf/commands/scripts/trash_clear.sh')
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_clear.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
index e3c2f795..faa3c553 100755
--- a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
+++ b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
@@ -4,6 +4,6 @@ while read -r file; do
     set -- "$@" "$(pwd)/$file"
 done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)"
 
-trash empty --match=exact "$@"
+[ "$#" -ne 0 ] && trash empty --match=exact "$@"
 
 # vim: ft=sh