change trash_empty
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kim Oliver Drechsel 2021-09-21 20:40:04 +02:00
parent d93cef60d3
commit bdeab80f5c

View File

@ -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() {