fixing how birdnet_analysis.service handles corrupt

audio files
This commit is contained in:
mcguirepr89
2022-04-24 11:30:19 -04:00
parent 486cc32b99
commit a8fb4c79a6
+1 -1
View File
@@ -48,7 +48,7 @@ fi
# Takes one argument:
# - {DIRECTORY}
get_files() {
files=($( find ${1} -maxdepth 1 -name '*wav' \
files=($( find ${1} -maxdepth 1 -name '*wav' ! -size 0\
| sort \
| awk -F "/" '{print $NF}' ))
[ -n "${files[1]}" ] && echo "Files loaded"