about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authoradisbladis <adisbladis@gmail.com>2022-10-10 14:21:06 +1300
committeradisbladis <adisbladis@gmail.com>2022-10-10 17:55:11 +1300
commit41c09640e7315be703af7840cf33e606c220beea (patch)
tree163dfa766c9cf4a561d8cc55c98e28788950cced /pkgs/build-support
parente92f9b319aecfc00147517ffca5cc9ae5f9154c5 (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.sh2
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." \