mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-09 04:27:35 +08:00
parent
d334d3c06e
commit
7dabcc95ca
@ -749,13 +749,13 @@ fn_info_logs(){
|
||||
fi
|
||||
|
||||
if [ -n "${gamelogdir}" ]; then
|
||||
echo -e "\nServer log\n==================="
|
||||
echo -e "\nGame Server log\n==================="
|
||||
if [ ! "$(ls -A "${gamelogdir}")" ]; then
|
||||
echo -e "${gamelogdir} (NO LOG FILES)"
|
||||
else
|
||||
echo -e "${gamelogdir}"
|
||||
# dos2unix sed 's/\r//'
|
||||
tail "${gamelogdir}"/* 2>/dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
|
||||
tail "${gamelogdir}"/*.log* 2>/dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//' | tail -25
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user