From 4a0a949d601969c672d9cf70ef8cf8682553f787 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 6 Feb 2018 21:22:29 -0800 Subject: phase-functions.sh: suppress shellcheck SC1087 Adding braces to ${x} suppresses the following shellcheck error: SC1087: Braces are required when expanding arrays, as in ${array[idx]}. Reported-by: R0b0t1 --- bin/phase-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index 10d54ca74..0ffabd99e 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -541,9 +541,9 @@ __dyn_install() { # fnmatch patterns to regular expressions for x in QA_DT_NEEDED QA_FLAGS_IGNORED QA_PRESTRIPPED QA_SONAME ; do if [[ $(declare -p $x 2>/dev/null) = declare\ -a* ]] ; then - eval "$x=(\"\${$x[@]}\" ${QA_PREBUILT//\*/.*})" + eval "${x}=(\"\${${x}[@]}\" ${QA_PREBUILT//\*/.*})" else - eval "$x+=\" ${QA_PREBUILT//\*/.*}\"" + eval "${x}+=\" ${QA_PREBUILT//\*/.*}\"" fi done -- cgit v1.2.3-65-gdbad