Quote variables, improve readability
This commit is contained in:
parent
6bfb6f3104
commit
bf18785bca
1 changed files with 5 additions and 5 deletions
|
@ -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*)
|
||||
|
|
Loading…
Reference in a new issue