A live bird collage card for your Home Assistant dashboard.
Silence the (harmless) midnight cleanup error
Patrick McGuire4a0b1c4ad8c0
diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.shindex d54c1a11..141ad826 100755--- a/scripts/birdnet_analysis.sh+++ b/scripts/birdnet_analysis.sh@@ -323,7 +323,7 @@ fiYESTERDAY="$RECS_DIR/$(date --date="yesterday" "+%B-%Y/%d-%A")"TODAY="$RECS_DIR/$(date "+%B-%Y/%d-%A")"-if [ $(find ${YESTERDAY} -name '*wav' | wc -l) -gt 0 ];then+if [ $(find ${YESTERDAY} -name '*wav' 2>/dev/null | wc -l) -gt 0 ];thenrun_birdnet "${YESTERDAY}"elif [ $(find ${TODAY} -name '*wav' | wc -l) -gt 0 ];thenrun_birdnet "${TODAY}"