openttd-jgr/start.sh
Fábio André Damas f35d23674e
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
Make docker image smaller
2025-06-02 23:37:27 +00:00

10 lines
270 B
Bash

#!/bin/sh
SAVE_FILE="/root/.openttd/save/autosave/latest.sav"
if [ -f "$SAVE_FILE" ]; then
echo "Loading savegame: $SAVE_FILE"
exec /openttd/openttd -D -g autosave/latest.sav
else
echo "No savegame found. Starting new game."
exec /openttd/openttd -D
fi