From 3c09b37c3a9c185e55b06d298449b7149d355cd3 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 18:45:34 +0200 Subject: [PATCH] change ls to find --- trash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trash.sh b/trash.sh index 5e0aa23..2300560 100644 --- a/trash.sh +++ b/trash.sh @@ -6,11 +6,11 @@ FILE_PATHS_FILE="$HOME/.trash/.filepaths" [ ! -f "$FILE_PATHS_FILE" ] && touch "$FILE_PATHS_FILE" trash_list() { - ls -lrth "$HOME"/.trash/ + find "$HOME"/.trash/ } trash_put() { - for FILE in $@; do + for FILE in "$@"; do # Store old filepath for later restore echo "$FILE $(readlink -f "$FILE")" >> "$FILE_PATHS_FILE" done