#!/bin/sh
set -eu
URL="https://github.com/crewly-space/server/releases/latest/download/install.sh"
TMP=$(mktemp "${TMPDIR:-/tmp}/crewly-installer.XXXXXX")
trap 'rm -f "$TMP"' EXIT HUP INT TERM
curl -fL --retry 3 --connect-timeout 10 "$URL" -o "$TMP"
sh "$TMP" "$@"
