#!/usr/bin/env sh # # Thin convenience wrapper. The real installer is Go: # # go run ./setup # # This script just forwards to it so `./install.sh` keeps working. All # flags pass through (see `go run ./setup --help`). # # ./install.sh # interactive: seed config, edit, install # ./install.sh -y # skip the editor # ./install.sh --local # build from this checkout (development) # ./install.sh --config-only set -eu command -v go >/dev/null 2>&1 || { echo "error: the Go toolchain is required but 'go' was not found on PATH." >&2 echo "Install Go (https://go.dev/dl/), then re-run." >&2 exit 1 } cd "$(dirname "$0")" exec go run ./setup "$@"