From 82640bc089167d074f8f263b85492db254f0305a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 2 May 2024 19:04:03 +0200 Subject: [PATCH] Update changeidenfication.sh --- birdnet-pi/rootfs/helpers/changeidenfication.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/birdnet-pi/rootfs/helpers/changeidenfication.sh b/birdnet-pi/rootfs/helpers/changeidenfication.sh index 549a0f54f..a7f5f2641 100644 --- a/birdnet-pi/rootfs/helpers/changeidenfication.sh +++ b/birdnet-pi/rootfs/helpers/changeidenfication.sh @@ -27,6 +27,8 @@ NEWNAME_sciname="${NEWNAME%%_*}" # Get the line where the column "File_Name" matches exactly $OLDNAME IFS='|' read -r OLDNAME_sciname OLDNAME_comname OLDNAME_date < <(sqlite3 "$DB_FILE" "SELECT Sci_Name, Com_Name, Date FROM $DETECTIONS_TABLE WHERE File_Name = '$OLDNAME';") +echo "This script will change the identification $OLDNAME from $OLDNAME_comname to $NEWNAME_comname" + if [[ -z "$OLDNAME_sciname" ]]; then echo "Error: No line matching $OLDNAME in $DB_FILE" exit 1