--decorate

This commit is contained in:
2025-08-04 15:56:47 +02:00
parent 828a69d65e
commit 7f94ab9646
3 changed files with 79 additions and 11 deletions

7
src/sh/config.sh Normal file
View File

@@ -0,0 +1,7 @@
if [ "${CONFIGFILE:-}" ]; then
[ ! -f "$CONFIGFILE" ] && err "Configuration $CONFIGFILE not found." && exit 1
. "$CONFIGFLIE"
[ ! "${MUSICDIR:-}" ] && err "MUSICDIR configuration not set." && exit 1
fi
[ "${MUSICDIR:-}" ] && [ ! -d "${MUSICDIR:-}" ] && err "The specified path ${MUSICDIR:-} is not a directory." && exit 1
DECORATION_FILENAME=${DECORATION_FILENAME:-"mbid.json"}