Make docker image smaller
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Fábio André Damas 2025-06-02 23:37:27 +00:00
parent 24c6904423
commit f35d23674e
2 changed files with 16 additions and 5 deletions

View file

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