Skip to content

Commit fe1eeb1

Browse files
authored
Update if statement to be more specific for detecting log in line
1 parent 25c8677 commit fe1eeb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/logfile-parser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LogParser() {
66
while IFS= read -r line; do
77
echo "$line"
88

9-
if [[ "$line" == *"] player "* ]]; then
9+
if [[ "$line" == "[userid:"*"] player"*"connected islocalplayer="* ]]; then
1010

1111
# Extract the steamid and character name
1212
steamid=$(echo "$line" | awk -F'[[]|[ :]+|[]]' '{print $3}')

0 commit comments

Comments
 (0)