A live bird collage card for your Home Assistant dashboard.
Update disk_check.sh
ehpersonal382e65ee39eef0
diff --git a/scripts/disk_check.sh b/scripts/disk_check.shindex 743233e1..c47c453f 100755--- a/scripts/disk_check.sh+++ b/scripts/disk_check.sh@@ -9,6 +9,9 @@ if [ "${used//%}" -ge 95 ]; thenpurge) echo "Removing oldest data"cd ${EXTRACTED}/By_Date/curl localhost/views.php?view=Species%20Stats &>/dev/null+ if ! grep -qxFe \#\#start $HOME/BirdNET-Pi/scripts/disk_check_exclude.txt; then+ exit+ fifilestodelete=$(($(find ${EXTRACTED}/By_Date/* -type f | wc -l) / $(find ${EXTRACTED}/By_Date/* -maxdepth 0 -type d | wc -l)))iter=0for i in */*/*; do