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.sh4
1 files changed, 2 insertions, 2 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 647d1b6e..e23bcd0b 100755
--- a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
+++ b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
@@ -1,8 +1,8 @@
 # shellcheck shell=sh
 
-conceal list | fzf --multi | awk '{for(i=3; i<=NF; i++) {print $i}}' | while read -r file; do
+while read -r file; do
     set -- "$@" "$file"
-done
+done < "$(conceal list | fzf --multi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)"
 
 trash empty --match=exact "$@"