docompress, prepcompress: Add missing quotes.
authorUlrich Mueller <ulm@gentoo.org>
Fri, 18 Feb 2011 23:42:36 +0000 (00:42 +0100)
committerZac Medico <zmedico@gentoo.org>
Sun, 20 Feb 2011 00:03:15 +0000 (16:03 -0800)
bin/ebuild.sh
bin/misc-functions.sh

index ebe2c65d3bc41cbb99858ecd478835b101b3a10b..d0cf84d1e4ba5a59b12836449891de3a1325ea96 100755 (executable)
@@ -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
index 46be5011cebd20945de34839f48686f8a6fa346e..e1e5df1fbe7e373e2d8377687507e0697367a43b 100755 (executable)
@@ -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