diff --git a/.local/share/trash-restore b/.local/share/trash-restore index 0b2db442..3663d107 100644 --- a/.local/share/trash-restore +++ b/.local/share/trash-restore @@ -9,7 +9,7 @@ list() { for file in "$1"/*; do [ "$(head -1 "$file")" = "[Trash Info]" ] && \ fpath=$(grep Path "$file" | cut -d '=' -f2) && \ - echo "$fpath" | grep -qP "^$2" && \ + echo "$fpath" | grep -qP "^$2/[^/]+$" && \ printf "%s %s %s\n" \ "$(basename "$file")" \ "$fpath" \