Fix LD_LIBRARY_PATH update

After  [065d3f5], LD_LIBRARY_PATH is not updated, even when there are *.so inside $addon/lib dirs.

Looking into the code: changing LD_LIBRARY_PATH in a set of code between parenthesis will keep the change only inside that scope.
I propose replacing the parenthesis.
This commit is contained in:
nvdias0 2024-01-02 14:28:43 +00:00 committed by GitHub
parent c80f98a022
commit ef68ba9fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,8 @@ export PATH
# LD_LIBRARY_PATH # LD_LIBRARY_PATH
for addon in /storage/.kodi/addons/*/lib /usr/lib/kodi/addons/*/lib; do for addon in /storage/.kodi/addons/*/lib /usr/lib/kodi/addons/*/lib; do
[ -d "$addon" ] && ( [ -d "$addon" ] &&
files="$(find $addon ! -type d -name '*.so*' -maxdepth 1)" files="$(find $addon ! -type d -name '*.so*' -maxdepth 1)" &&
[ ! -z "$files" ] && LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon" [ ! -z "$files" ] && LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon"
)
done done
export LD_LIBRARY_PATH export LD_LIBRARY_PATH