#!/usr/bin/env bash set -euo pipefail set +x umask 077 if ! { : /dev/null; then echo 'A terminal is required for installation.' >&2; exit 1; fi command -v curl >/dev/null || { echo 'Install curl first.' >&2; exit 1; } parent=${TMPDIR:-/tmp} [[ ! -d /dev/shm || ! -w /dev/shm ]] || parent=/dev/shm staging=$(mktemp -d "$parent/neo-bootstrap.XXXXXXXX") trap 'rm -rf -- "$staging"' EXIT curl --proto '=https' --proto-redir '=https' -fsSL https://git.sn-s.net/neo/neo-roundtable/raw/branch/main/neo-admin -o "$staging/neo-admin" bash "$staging/neo-admin" install