]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
change load libs direct from scriptpath
authorBastian Dehn <hhaalo@arcor.de>
Sun, 12 Jul 2026 17:42:39 +0000 (19:42 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 12 Jul 2026 17:42:39 +0000 (19:42 +0200)
albentohandy

index 2d8bb9a3f7448f27fd1878b3f2f116bf2fd4ec0f..4e0aca90c05fd18600369386b9d569a0052c34d2 100755 (executable)
@@ -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