From: Zac Medico Date: Sat, 3 Aug 2013 11:08:53 +0000 (-0700) Subject: __repo_key: fix for bash-3.2 compatibility X-Git-Tag: v2.2.0_alpha193~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a907b6d292208002116105544cd48b20a66a35fe;p=portage.git __repo_key: fix for bash-3.2 compatibility --- diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 4b5ed8b3a..6ef8a9163 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -461,7 +461,7 @@ __repo_key() { while read line; do [[ ${appropriate_section} == 0 && ${line} == "[$1]" ]] && appropriate_section=1 && continue [[ ${appropriate_section} == 1 && ${line} == "["*"]" ]] && appropriate_section=0 && continue - if [[ ${appropriate_section} == 1 && ${line} == $2*( )=* ]]; then + if [[ ${appropriate_section} == 1 && ${line} =~ ^${2}[[:space:]]*= ]]; then echo "${line##$2*( )=*( )}" exit_status=0 break