#!/bin/sh set -eu # Exercise the game loop over authenticated RCON, and check that its data is writable. test -s /factorio/config/rconpw test -d /factorio/saves test -w /factorio/saves response=$(rcon /players online) printf '%s\n' "$response" | grep -q 'Online players'