From 2cd2c44a9094ef324f3c47a7d6e1b1ea7347cb98 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 12 Jul 2026 19:42:39 +0200 Subject: [PATCH] change load libs direct from scriptpath --- albentohandy | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 -- 2.47.3