stardew-multiplayer-docker/docker/scripts/tail-smapi-log.sh
2021-01-23 21:04:33 +01:00

13 lines
324 B
Bash

#!/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