diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
commit | abaa75b10f899ada8dd05b23cc03205064394bc6 (patch) | |
tree | eca3dd248b73b92013cba00a0fcc1edf2696e19a /eclass/optfeature.eclass | |
parent | 24fd814c326e282c4321965c31f341dad77e270d (diff) |
gentoo resync : 22.01.2021
Diffstat (limited to 'eclass/optfeature.eclass')
-rw-r--r-- | eclass/optfeature.eclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/optfeature.eclass b/eclass/optfeature.eclass index 1943ae37bf5e..e13fc3eba811 100644 --- a/eclass/optfeature.eclass +++ b/eclass/optfeature.eclass @@ -32,11 +32,13 @@ optfeature() { debug-print-function ${FUNCNAME} "$@" local i j msg + local -a arr local desc=$1 local flag=0 shift for i; do - for j in ${i}; do + read -r -d '' -a arr <<<"${i}" + for j in "${arr[@]}"; do if has_version "${j}"; then flag=1 else @@ -50,8 +52,9 @@ optfeature() { done if [[ ${flag} -eq 0 ]]; then for i; do + read -r -d '' -a arr <<<"${i}" msg=" " - for j in ${i}; do + for j in "${arr[@]}"; do msg+=" ${j} and" done msg="${msg:0: -4} for ${desc}" |