Merge pull request #1004 from srd424/upst-chunk-analysis

Chunk analysis calls to facilitate recovery from stalls & low disk space
This commit is contained in:
ehpersonal38
2023-08-12 13:22:26 -04:00
committed by GitHub
+2 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env -S --default-signal=PIPE bash
# Runs BirdNET-Lite
#set -x
source /etc/birdnet/birdnet.conf
@@ -52,6 +52,7 @@ fi
get_files() {
files=($( find ${1} -maxdepth 1 -name '*wav' ! -size 0\
| sort \
| head -n 20 \
| awk -F "/" '{print $NF}' ))
[ -n "${files[1]}" ] && echo "Files loaded"
}