change trash_empty
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 20:44:43 +02:00
parent f3db776294
commit 5ebd138009

View File

@ -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"
}