diff options
author | adisbladis <adisbladis@gmail.com> | 2022-10-10 14:21:06 +1300 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2022-10-10 17:55:11 +1300 |
commit | 41c09640e7315be703af7840cf33e606c220beea (patch) | |
tree | 163dfa766c9cf4a561d8cc55c98e28788950cced /pkgs/build-support | |
parent | e92f9b319aecfc00147517ffca5cc9ae5f9154c5 (diff) |
autoPatchelfHook: fix turning `[ "*" ]` into bash array
Previously globs were incorrectly handled and expanded by bash into the files in the temporary build directory.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/auto-patchelf.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.sh b/pkgs/build-support/setup-hooks/auto-patchelf.sh index b56f9ce2dbf4c..7f5ff146e30b6 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.sh +++ b/pkgs/build-support/setup-hooks/auto-patchelf.sh @@ -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." \ |