Update changeidentification.sh

This commit is contained in:
Alexandre
2024-05-14 12:00:52 +02:00
committed by GitHub
parent e7efbf63c1
commit 833561aff5

View File

@@ -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