Skip to content

A live bird collage card for your Home Assistant dashboard.

Update birdnet_stats.sh

mcguirepr89b72aa58cc6a6
diff --git a/scripts/birdnet_stats.sh b/scripts/birdnet_stats.sh
index 2c7836ee..3c26ffe7 100755
--- a/scripts/birdnet_stats.sh
+++ b/scripts/birdnet_stats.sh
@@ -15,7 +15,7 @@ while true;do
) / | (
"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"
EOF
- if [ "$(find ${EXTRACTED} -name '*.wav' | wc -l)" -ge 1 ];then
+ if [ "$(find ${EXTRACTED} -name '*.wav' | wc -l &> /dev/null)" -ge 1 ];then
a=$( find "${EXTRACTED}" -name '*.wav' \
| awk -F "/" '{print $NF}' \
| cut -d'-' -f1 \