#!/bin/bash # Clear old stderr log rm -f /tmp/modularbot_stderr.log # Run the test /tmp/test_gun_switching echo "" echo "=== Last 50 lines of /tmp/modularbot_stderr.log ===" if [ -f /tmp/modularbot_stderr.log ]; then tail -50 /tmp/modularbot_stderr.log | grep -E "\[fire\]|\[vbullet\]" || tail -50 /tmp/modularbot_stderr.log else echo "No log file created" fi