{
local lib="$1"
local workdir="$2"
+ local scriptpath=$(dirname $(realpath "$0"))
- [ -f "$LIBS/$lib" ] \
- || errlog "file $LIBS/$lib does not exists" \
+ [ -f "$scriptpath/libs/$lib" ] \
+ || errlog "file $scriptpath/libs/$lib does not exists" \
|| return $?
# shellcheck disable=SC1090
- source "$LIBS/$lib" || return $?
+ source "$scriptpath/libs/$lib" || return $?
mkdir -p "$workdir"
make_symlinks_to_work "albumlist" "$workdir" "$MUSICPATH" || return $?
[ -n "$MUSICPATH" ] \
|| errlog "missing MUSICPATH" \
|| return $?
- [ -n "$LIBS" ] \
- || errlog "missing LIBS" \
- || return $?
cover=false