From b72aa58cc6a683bb96218a3e9485087508f71aaf Mon Sep 17 00:00:00 2001 From: mcguirepr89 <60325264+mcguirepr89@users.noreply.github.com> Date: Thu, 7 Oct 2021 13:54:10 -0400 Subject: [PATCH] Update birdnet_stats.sh --- scripts/birdnet_stats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/birdnet_stats.sh b/scripts/birdnet_stats.sh index 2c7836e..3c26ffe 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 \