diff options
author | 2017-11-02 01:24:25 +0700 | |
---|---|---|
committer | 2017-11-02 01:24:25 +0700 | |
commit | f127bc03084f3ece242a4e10fbeb6789a67f3ae8 (patch) | |
tree | 7d7317d641cfefeb1508dec4b696d81222134ed4 | |
parent | lua.eclass: prefix-compat work (diff) | |
download | lua-f127bc03084f3ece242a4e10fbeb6789a67f3ae8.tar.gz lua-f127bc03084f3ece242a4e10fbeb6789a67f3ae8.tar.bz2 lua-f127bc03084f3ece242a4e10fbeb6789a67f3ae8.zip |
eselect-luajit: some prefix-related fixes
-rw-r--r-- | app-eselect/eselect-luajit/files/luajit-1.eselect | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app-eselect/eselect-luajit/files/luajit-1.eselect b/app-eselect/eselect-luajit/files/luajit-1.eselect index 3e6f376..95d4d54 100644 --- a/app-eselect/eselect-luajit/files/luajit-1.eselect +++ b/app-eselect/eselect-luajit/files/luajit-1.eselect @@ -27,14 +27,18 @@ find_targets() { } get_libdirs() { - local dir libdirs + local dir libdirs=() ret; for dir in $(list_libdirs); do - [[ -L ${EROOT}/usr/${dir} ]] && continue - ls "${EROOT}"/usr/${dir}/libluajit*.* > /dev/null 2>&1 || continue + [[ -L "${EROOT}/usr/${dir}" ]] && continue + ls "${EROOT}"/usr/"${dir}"/libluajit*.* > /dev/null 2>&1 || continue - libdirs+=' '/usr/${dir} + libdirs+=("${EROOT}/usr/${dir}") done - echo ${libdirs:-/usr/lib} + + ret=${libdirs[@]} + ret=${ret:-/usr/lib} + + echo ${ret} } |