print infos for --reload

This commit is contained in:
2025-08-26 11:02:20 +02:00
parent c46cd9a57f
commit 0db4b7069c
2 changed files with 6 additions and 0 deletions

View File

@@ -49,7 +49,9 @@ fi
if [ "${1:-}" = "--reload" ]; then
[ ! "${MUSICDIR:-}" ] && err "The environment variable MUSICDIR is not set." && exit 1
[ ! -d "${MUSICDIR:-}" ] && err "The environment variable MUSICDIR does not point to a directory." && exit 1
info "Reloading information of local music directory $MUSICDIR"
load_local || err "Failed to load local data"
info "Done"
exit 0
fi