Skip to content

A live bird collage card for your Home Assistant dashboard.

cleanup old empty birdsongs

ehpersonal38260402de0de2
diff --git a/scripts/disk_check.sh b/scripts/disk_check.sh
index c47c453f..27fef212 100755
--- a/scripts/disk_check.sh
+++ b/scripts/disk_check.sh
@@ -23,6 +23,7 @@ if [ "${used//%}" -ge 95 ]; then
fi
((iter++))
done
+ find ~/BirdSongs/ -type d -empty -mtime +90 -delete
find ${EXTRACTED}/By_Date/ -empty -type d -delete;;
#rm -drfv "$(find ${EXTRACTED}/By_Date/* -maxdepth 1 -type d -prune \