# Sourced by the scripts: D = repo folder, NAME = container, PORT = game port (from .env). D=$(cd "$(dirname "$0")/.." && pwd) getenv() { sed -n "s/^$1=//p" "$D/.env" 2>/dev/null | tr -d '\r'; } NAME=$(getenv CS_NAME); NAME=${NAME:-cs16} PORT=$(getenv CS_PORT); PORT=${PORT:-27015}