From a907b6d292208002116105544cd48b20a66a35fe Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 Aug 2013 04:08:53 -0700 Subject: [PATCH] __repo_key: fix for bash-3.2 compatibility --- bin/isolated-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2