mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-15 21:31:50 +02:00
Update changeidentification.sh
This commit is contained in:
@@ -24,8 +24,8 @@ DETECTIONS_TABLE="detections"
|
|||||||
###################
|
###################
|
||||||
|
|
||||||
# Check if files exist
|
# Check if files exist
|
||||||
if [ ! -d "$LABELS_FILE" ]; then echo "$LABELS_FILE doesn't exist, exiting" && exit 1; fi
|
if [ ! -f "$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 "$DB_FILE" ]; then echo "$DB_FILE doesn't exist, exiting" && exit 1; fi
|
||||||
|
|
||||||
# Check if inputs are valid
|
# Check if inputs are valid
|
||||||
if [[ "$1" != *".mp3" ]]; then
|
if [[ "$1" != *".mp3" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user