MUSICDIR env not required anymore
This commit is contained in:
10
src/main.sh
10
src/main.sh
@@ -47,10 +47,10 @@ if [ "${1:-}" = "--decorate" ]; then
|
||||
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"
|
||||
[ ! "${2:-}" ] && err "Path to decorated music is missing." && exit 1
|
||||
[ ! -d "$2" ] && err "Path does not point to a directory." && exit 1
|
||||
info "Reloading information of local music directory $2"
|
||||
load_local "$2" || err "Failed to load local data"
|
||||
info "Done"
|
||||
exit 0
|
||||
fi
|
||||
@@ -386,7 +386,7 @@ GENERAL OPTIONS:
|
||||
|
||||
MANAGE LOCAL MUSIC:
|
||||
--decorate <path> Decorate directory containing a tagged release
|
||||
--reload Populate database with decorated local music
|
||||
--reload <path> Populate database with decorated local music from <path>
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user