mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-11 15:40:14 -04:00
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>
This commit is contained in:
parent
e0400fff96
commit
6bb5948025
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user