summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorUlrich Mueller <ulm@gentoo.org>2011-02-19 00:42:36 +0100
committerZac Medico <zmedico@gentoo.org>2011-02-19 16:03:15 -0800
commit09fcb2f84258629b6befe8e9a4cc62f15bedfe08 (patch)
tree65c506b13b254b5334639b75e82f004c50f55f31 /bin
parent9fc5c27af699de5d5f5ded2b51a5e73c99e983ac (diff)
downloadportage-09fcb2f84258629b6befe8e9a4cc62f15bedfe08.tar.gz
portage-09fcb2f84258629b6befe8e9a4cc62f15bedfe08.tar.bz2
portage-09fcb2f84258629b6befe8e9a4cc62f15bedfe08.zip
docompress, prepcompress: Add missing quotes.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh4
-rwxr-xr-xbin/misc-functions.sh2
2 files changed, 3 insertions, 3 deletions
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