From 2234a7e87eeae4ffde7405df8601153452e61108 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 8 Jul 2024 23:30:15 +0300 Subject: Clean up now logs what happened --- bin/ak-clean | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/ak-clean b/bin/ak-clean index f69071c..2411190 100755 --- a/bin/ak-clean +++ b/bin/ak-clean @@ -21,6 +21,13 @@ descriptionString="Cleans ak temp files" source $AK_LIBDIR/_ak_script _ak_tmp_cleanup(){ + ls -1 /tmp/aktmp* > /dev/null 2>&1 + if [ $? -ne 0 ] + then + _ak_log_info "No tmp items found for deletion" + exit 0 + fi + _ak_log_info "Cleaning up $(ls -1 /tmp/aktmp* | wc -l) items" rm -rf /tmp/aktmp* } -- cgit v1.2.3