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

13 lines
329 B
Bash
Raw Permalink Normal View History

2021-01-23 20:04:33 +00:00
#!/bin/sh
echo "-- SMAPI Log: Starting"
# Wait for SMAPI log and tail infinitely
2021-01-23 23:04:36 +00:00
while [ ! -f "/config/xdg/config/StardewValley/ErrorLogs/SMAPI-latest.txt" ]; do
2021-01-23 20:04:33 +00:00
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