mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
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.
This commit is contained in:
committed by
Marc Cornellà
parent
937a7f66ef
commit
26aae6b583
@@ -192,7 +192,7 @@ apt-history () {
|
|||||||
awk '{print $4"="$5}'
|
awk '{print $4"="$5}'
|
||||||
;;
|
;;
|
||||||
list)
|
list)
|
||||||
zcat $(ls -rt /var/log/dpkg*)
|
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Parameters:"
|
echo "Parameters:"
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ apt-history () {
|
|||||||
awk '{print $4"="$5}'
|
awk '{print $4"="$5}'
|
||||||
;;
|
;;
|
||||||
list)
|
list)
|
||||||
zcat $(ls -rt /var/log/dpkg*)
|
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Parameters:"
|
echo "Parameters:"
|
||||||
|
|||||||
Reference in New Issue
Block a user