From: Bastian Dehn Date: Sun, 12 Jul 2026 17:42:39 +0000 (+0200) Subject: change load libs direct from scriptpath X-Git-Tag: v1.0.0^2~32 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2cd2c44a9094ef324f3c47a7d6e1b1ea7347cb98;p=albentohandy.git change load libs direct from scriptpath --- diff --git a/albentohandy b/albentohandy index 2d8bb9a..4e0aca9 100755 --- a/albentohandy +++ b/albentohandy @@ -108,12 +108,13 @@ execute_program() { 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 $? @@ -150,9 +151,6 @@ main() [ -n "$MUSICPATH" ] \ || errlog "missing MUSICPATH" \ || return $? - [ -n "$LIBS" ] \ - || errlog "missing LIBS" \ - || return $? cover=false