#!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) cd "$root" sh -n install.sh sh -n s-migrate.sh if rg -n 'git[[:space:]]+clone|OverCooked-S\.git|Overcooked-E\.git|Authorization:[[:space:]]*Bearer' . --glob '!.git/**'; then echo 'forbidden source checkout or authorization header found' >&2 exit 1 fi test -f compose/s.yml test -f compose/e.yml test -f config/e-server.production.yaml test -f s-migrations.tar.gz test "$(find s-migrations -type f -name '*.up.sql' | wc -l)" -gt 0 sha256sum -c SHA256SUMS >/dev/null ! rg -n '^([[:space:]]*)build:' compose ! rg -n 'overcooked-auth|overcooked-auth-webui' compose install.sh ! rg -n 'S_TURNSTILE_(SITE|SECRET)_KEY: .*\\?required' compose ! rg -n 'S_INTERNAL_TLS_(ADDR|CERT_FILE|KEY_FILE|CLIENT_CA_FILE)' compose install.sh rg -n 'control-proxy|PRODUCT_E_CONTROL_PLANE_TLS_' compose install.sh >/dev/null echo 'static customer installer checks passed'