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:45:25 +02:00
parent 5ebd138009
commit 587f67af93

View File

@ -20,8 +20,8 @@ trash_put() {
}
trash_empty() {
echo "Delete $(find "$TRASH_DIR" ! -name ".filepaths" | tail -n +2 | wc -l) files in trash"
\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() {