refactor: improve log file display in info_messages.sh

The code change modifies the tail command in the fn_info_logs function to exclude lines containing "==>". This improves the display of log files by filtering out unnecessary information.
This commit is contained in:
Daniel Gibbs 2023-09-26 00:30:54 +01:00
parent 4a02dfd382
commit 13c62431d0
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,6 @@
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
ip="0.0.0.0"
port="7777"
# Maps: bridge, datacenter, sand
defaultmap="datacenter"
# Get an API key from https://pavlov-ms.vankrupt.com/servers/v1/key

View File

@ -762,7 +762,7 @@ fn_info_logs() {
else
echo -e "${gamelogdir}"
# dos2unix sed 's/\r//'
tail "${gamelogdir}"/* 2> /dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
tail "${gamelogdir}"/* 2> /dev/null | grep -av "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
fi
echo -e ""
fi