From f3db77629444f18d21509ba996c10cf78458c3f0 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 20:42:49 +0200 Subject: [PATCH] change trash_empty --- trash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trash.sh b/trash.sh index df70df7..7945d07 100644 --- a/trash.sh +++ b/trash.sh @@ -20,7 +20,7 @@ trash_put() { } trash_empty() { - \rm -rf "${TRASH_DIR/*}" && echo >"$FILE_PATHS_FILE" + \rm -rf "$TRASH_DIR/*" && echo >"$FILE_PATHS_FILE" echo "Deleted $(find "$TRASH_DIR" ! -name ".filepaths" | tail -n +2 | wc -l) files in trash" }