Commit 26aae6b5 authored by Rarylson Freitas's avatar Rarylson Freitas Committed by Marc Cornellà
Browse files

Fix (plugins debian and ubuntu): `apt-history list` using `zgrep` (#5695)

Changing from `zcat` to `zgrep` because some `zcat` implementations do not work
if the file is not compressed.
parent 937a7f66
......@@ -192,7 +192,7 @@ apt-history () {
awk '{print $4"="$5}'
;;
list)
zcat $(ls -rt /var/log/dpkg*)
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
;;
*)
echo "Parameters:"
......
......@@ -108,7 +108,7 @@ apt-history () {
awk '{print $4"="$5}'
;;
list)
zcat $(ls -rt /var/log/dpkg*)
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
;;
*)
echo "Parameters:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment