stardew-multiplayer-docker/docker/scripts/tail-smapi-log.sh

13 lines
324 B
Bash
Raw Normal View History

2021-01-23 20:04:33 +00:00
#!/bin/sh
echo "-- SMAPI Log: Starting"
# Wait for SMAPI log and tail infinitely
while [ ! -f "/root/.config/StardewValley/ErrorLogs/SMAPI-latest.txt" ]; do
echo "-- SMAPI Log: Waiting for log to appear";
sleep 5;
done
echo "-- SMAPI Log: Tailing"
tail -f /config/xdg/config/StardewValley/ErrorLogs/SMAPI-latest.txt