diff options
Diffstat (limited to 'modules/by-name/lf/lf/commands/scripts/trash_clear.sh')
-rwxr-xr-x | modules/by-name/lf/lf/commands/scripts/trash_clear.sh | 4 |
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 faa3c553..a41dce27 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 -while read -r file; do +while IFS="$(printf '\n')" read -r file; do set -- "$@" "$(pwd)/$file" -done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)" +done <"$(conceal list | fzf --multi --ansi | awk '{$1="";$2=""; print $0}' | sed 's/^\s*//' | tmp)" [ "$#" -ne 0 ] && trash empty --match=exact "$@" |