From bf18785bcac4d627377a43f8ce3fe42f1db1704e Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 3 Jul 2012 13:42:37 -0400 Subject: [PATCH] Quote variables, improve readability --- modules/dpkg/functions/deb-history | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dpkg/functions/deb-history b/modules/dpkg/functions/deb-history index 5ae1446a..a5a1ee86 100644 --- a/modules/dpkg/functions/deb-history +++ b/modules/dpkg/functions/deb-history @@ -12,13 +12,13 @@ case "$1" in zgrep --no-filename 'install ' $(ls -rt /var/log/dpkg*) ;; (upgrade|remove) - zgrep --no-filename $1 $(ls -rt /var/log/dpkg*) + zgrep --no-filename "$1" $(ls -rt /var/log/dpkg*) ;; (rollback) - zgrep --no-filename upgrade $(ls -rt /var/log/dpkg*) | \ - grep "$2" -A10000000 | \ - grep "$3" -B10000000 | \ - awk '{print $4"="$5}' + zgrep --no-filename upgrade $(ls -rt /var/log/dpkg*) \ + | grep "$2" -A10000000 \ + | grep "$3" -B10000000 \ + | awk '{print $4"="$5}' ;; (list) zcat $(ls -rt /var/log/dpkg*)