Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit 750409d

Browse files
authored
Merge pull request #1004 from srd424/upst-chunk-analysis
Chunk analysis calls to facilitate recovery from stalls & low disk space
2 parents c85fa1e + eb86fad commit 750409d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/birdnet_analysis.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env -S --default-signal=PIPE bash
22
# Runs BirdNET-Lite
33
#set -x
44
source /etc/birdnet/birdnet.conf
@@ -52,6 +52,7 @@ fi
5252
get_files() {
5353
files=($( find ${1} -maxdepth 1 -name '*wav' ! -size 0\
5454
| sort \
55+
| head -n 20 \
5556
| awk -F "/" '{print $NF}' ))
5657
[ -n "${files[1]}" ] && echo "Files loaded"
5758
}

0 commit comments

Comments
 (0)