mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
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:
parent
c80f98a022
commit
ef68ba9fb8
@ -9,9 +9,8 @@ export PATH
|
||||
|
||||
# LD_LIBRARY_PATH
|
||||
for addon in /storage/.kodi/addons/*/lib /usr/lib/kodi/addons/*/lib; do
|
||||
[ -d "$addon" ] && (
|
||||
files="$(find $addon ! -type d -name '*.so*' -maxdepth 1)"
|
||||
[ -d "$addon" ] &&
|
||||
files="$(find $addon ! -type d -name '*.so*' -maxdepth 1)" &&
|
||||
[ ! -z "$files" ] && LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon"
|
||||
)
|
||||
done
|
||||
export LD_LIBRARY_PATH
|
||||
|
Loading…
x
Reference in New Issue
Block a user