autoPatchelfHook: fix turning [ "*" ] into bash array

Previously globs were incorrectly handled and expanded by bash into the files in the temporary build directory.
This commit is contained in:
adisbladis 2022-10-10 14:21:06 +13:00
parent e92f9b319a
commit 41c09640e7

View file

@ -53,7 +53,7 @@ autoPatchelf() {
esac
done
local ignoreMissingDepsArray=($autoPatchelfIgnoreMissingDeps)
readarray -td' ' ignoreMissingDepsArray < <(echo -n "$autoPatchelfIgnoreMissingDeps")
if [ "$autoPatchelfIgnoreMissingDeps" == "1" ]; then
echo "autoPatchelf: WARNING: setting 'autoPatchelfIgnoreMissingDeps" \
"= true;' is deprecated and will be removed in a future release." \