Browse Source

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.
Rarylson Freitas 8 years ago
parent
commit
26aae6b583
2 changed files with 2 additions and 2 deletions
  1. 1 1
      plugins/debian/debian.plugin.zsh
  2. 1 1
      plugins/ubuntu/ubuntu.plugin.zsh

+ 1 - 1
plugins/debian/debian.plugin.zsh

@@ -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:"

+ 1 - 1
plugins/ubuntu/ubuntu.plugin.zsh

@@ -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:"