From 5ebd138009eb64501c58e97522cfe3627490a348 Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 21 Sep 2021 20:44:43 +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 7945d07..36951a0 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" }