mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user