Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/paccache.in
diff options
context:
space:
mode:
authorlolilolicon <lolilolicon@gmail.com>2011-09-29 10:45:22 +0800
committerDan McGee <dan@archlinux.org>2011-09-30 10:48:49 -0500
commit6bb594802588240405efee0813f7aa1daa9648b3 (patch)
tree6800600f7584c4faf0ee87624531fc5643466984 /contrib/paccache.in
parente0400fff96497d915e67d190052820d53443d98f (diff)
paccache: proper quoting in [[ expression ]]
Always quote the right-hand side of expression when the == or != operator is used, unless intended as a pattern. Signed-off-by: lolilolicon <lolilolicon@gmail.com> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'contrib/paccache.in')
-rwxr-xr-xcontrib/paccache.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/paccache.in b/contrib/paccache.in
index e5cac7de..4e185c27 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -153,7 +153,7 @@ summarize() {
while read -r pkg; do
if (( verbose >= 3 )); then
[[ $pkg =~ $pkg_re ]] && name=${BASH_REMATCH[1]} arch=${BASH_REMATCH[2]}
- if [[ -z $seen || $seenarch != $arch || $seen != $name ]]; then
+ if [[ -z $seen || $seenarch != "$arch" || $seen != "$name" ]]; then
printf '%s (%s):\n' "$name" "$arch"
fi
printf ' %s\n' "$pkg"