From 833561aff5ea0776b362e24adbce2d9d7dc2d9ec Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 14 May 2024 12:00:52 +0200 Subject: [PATCH] Update changeidentification.sh --- birdnet-pi/rootfs/helpers/changeidentification.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birdnet-pi/rootfs/helpers/changeidentification.sh b/birdnet-pi/rootfs/helpers/changeidentification.sh index 246858c7b..407f85ac4 100755 --- a/birdnet-pi/rootfs/helpers/changeidentification.sh +++ b/birdnet-pi/rootfs/helpers/changeidentification.sh @@ -24,8 +24,8 @@ DETECTIONS_TABLE="detections" ################### # Check if files exist -if [ ! -d "$LABELS_FILE" ]; then echo "$LABELS_FILE doesn't exist, exiting" && exit 1; fi -if [ ! -d "$DB_FILE" ]; then echo "$DB_FILE doesn't exist, exiting" && exit 1; fi +if [ ! -f "$LABELS_FILE" ]; then echo "$LABELS_FILE doesn't exist, exiting" && exit 1; fi +if [ ! -f "$DB_FILE" ]; then echo "$DB_FILE doesn't exist, exiting" && exit 1; fi # Check if inputs are valid if [[ "$1" != *".mp3" ]]; then