From: Ulrich Mueller Date: Fri, 18 Feb 2011 23:42:36 +0000 (+0100) Subject: docompress, prepcompress: Add missing quotes. X-Git-Tag: v2.2.0_alpha25~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af19eb79093292db5e3bc9467f3cf0cd79c8513c;p=portage.git docompress, prepcompress: Add missing quotes. --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index ebe2c65d3..d0cf84d1e 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -916,7 +916,7 @@ docompress() { f=$(strip_duplicate_slashes "${f}"); f=${f%/} [[ ${f:0:1} = / ]] || f="/${f}" for g in "${PORTAGE_DOCOMPRESS_SKIP[@]}"; do - [[ ${f} = ${g} ]] && continue 2 + [[ ${f} = "${g}" ]] && continue 2 done PORTAGE_DOCOMPRESS_SKIP[${#PORTAGE_DOCOMPRESS_SKIP[@]}]=${f} done @@ -925,7 +925,7 @@ docompress() { f=$(strip_duplicate_slashes "${f}"); f=${f%/} [[ ${f:0:1} = / ]] || f="/${f}" for g in "${PORTAGE_DOCOMPRESS[@]}"; do - [[ ${f} = ${g} ]] && continue 2 + [[ ${f} = "${g}" ]] && continue 2 done PORTAGE_DOCOMPRESS[${#PORTAGE_DOCOMPRESS[@]}]=${f} done diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 46be5011c..e1e5df1fb 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -103,7 +103,7 @@ prepcompress() { fi done for g in "${exclude[@]}"; do - if [[ ${f} = ${g} || ${f} == "${g%/}"/* ]]; then + if [[ ${f} = "${g}" || ${f} == "${g%/}"/* ]]; then unset include[i] continue 2 fi