From 6ec5aa8dedcc5049c4cd8283a270efa5e5b868e2 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 20:22:16 +0200 Subject: [PATCH] change image from ubuntu to bash --- trash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trash.sh b/trash.sh index 69f0a23..cba07ad 100644 --- a/trash.sh +++ b/trash.sh @@ -18,8 +18,8 @@ trash_put() { } trash_empty() { - echo "Delete all $(find "$HOME"/.trash/ ! -name ".filepaths" | wc -l) files in trash?" - \rm -ir "$HOME"/.trash/* && echo >"$FILE_PATHS_FILE" + echo "Delete all $(find "$HOME"/.trash/ ! -name ".filepaths" | tail -n +2 | wc -l) files in trash?" + \rm -irf "$HOME"/.trash/* && echo >"$FILE_PATHS_FILE" } trash_restore() {