From 4a0b1c4ad8c03cd5b548cb0439315abdb8db0d05 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Sun, 17 Apr 2022 14:50:48 -0400 Subject: [PATCH] Silence the (harmless) midnight cleanup error --- scripts/birdnet_analysis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.sh index d54c1a1..141ad82 100755 --- a/scripts/birdnet_analysis.sh +++ b/scripts/birdnet_analysis.sh @@ -323,7 +323,7 @@ fi YESTERDAY="$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 ];then run_birdnet "${YESTERDAY}" elif [ $(find ${TODAY} -name '*wav' | wc -l) -gt 0 ];then run_birdnet "${TODAY}"