1
0
Fork 0

Fix showlog

This commit is contained in:
VirtuBox 2019-11-13 14:03:21 +01:00
parent 4ce39277dc
commit 4e2cdec72b
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ EE_SHOW_LOG() {
if ! command_exists ccze; then
apt install ccze -y
fi
if grep -q ".gz" "$1"; then
if echo "$1" | grep -q ".gz"; then
zcat "$1" | ccze -A -p syslog -C
else
tail -n 500 "$1" | ccze -A -p syslog -C