From 3eaa2828ba891e39c952147f2a46c80a476933e3 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 24 Mar 2025 23:25:35 -0700 Subject: [PATCH] rm-prefer-trash: fix trashdir being unset in some cases --- .config/shell/bin/rm-prefer-trash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/bin/rm-prefer-trash b/.config/shell/bin/rm-prefer-trash index 6287751..a0f0a4d 100755 --- a/.config/shell/bin/rm-prefer-trash +++ b/.config/shell/bin/rm-prefer-trash @@ -110,9 +110,9 @@ do_rmtrash() { fi fi done + trashdir='' if [ "$fs1" != '' ]; then # if we get here, we have validated that all the files are on the same filesystem - trashdir='' found_trash=false while [ "$trashdirs" != "$trashdir" ]; do trashdir="${trashdirs%%:*}"