fix: prevent redundant event processing

Amolith created

The `tail -n 0` option ensures that the script only processes new lines
appended to the log file after the script has started, preventing
re-processing of existing file content on startup.

Change summary

mumblingherald | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

mumblingherald 🔗

@@ -210,7 +210,7 @@ fi
 
 # Start tailing the log file and processing events
 echo "👂 *herald puts ear to the wall and begins listening intently*"
-tail -F "$MUMBLE_LOG_FILE" | while read -r line; do
+tail -F -n 0 "$MUMBLE_LOG_FILE" | while read -r line; do
 	# Process lines that contain "Moved" or "Connection closed" events
 	if [[ "$line" == *"Moved"* ]]; then
 		parse_move_event "$line"