From bdeab80f5c512de8ae4b17795d7d395107e22da6 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 20:40:04 +0200 Subject: [PATCH] change trash_empty --- trash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trash.sh b/trash.sh index 07766ad..df70df7 100644 --- a/trash.sh +++ b/trash.sh @@ -20,8 +20,8 @@ trash_put() { } trash_empty() { - echo "Delete all $(find "$TRASH_DIR" ! -name ".filepaths" | tail -n +2 | wc -l) files in trash?" - \rm -irf "${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" } trash_restore() {