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 \