From 95d7451596e3c79a7e2dcec3f7f65304d395b821 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Mon, 30 May 2022 10:24:19 -0400 Subject: [PATCH] Looks for ANALYZED anywhere defined in RECS_DIR --- scripts/extract_new_birdsounds.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index 4d52982..b497d32 100755 --- a/scripts/extract_new_birdsounds.sh +++ b/scripts/extract_new_birdsounds.sh @@ -13,9 +13,9 @@ source /etc/birdnet/birdnet.conf # Set Variables TMPFILE=$(mktemp) -#ANALYZED=${RECS_DIR}/*/*Analyzed +ANALYZED=${RECS_DIR}/*/*Analyzed #SCAN_DIRS are all directories marked "Analyzed" -SCAN_DIRS=($(find $HOME -type d -name '*Analyzed' 2>/dev/null | sort )) +SCAN_DIRS=($(find $ANALYZED -type d -name '*Analyzed' 2>/dev/null | sort )) for h in "${SCAN_DIRS[@]}";do # The TMPFILE is created from each .csv file BirdNET creates