#!/usr/bin/env zsh # ambre bootstrap · https://install.ambre.kud.io # # Public on purpose: kud/ambre is a private repo, so the CLONE needs credentials # but the BOOTSTRAP has to be fetchable by a machine with nothing on it yet. # Nothing secret lives here — it asks for your token at run time. # # curl -L --silent https://install.ambre.kud.io | zsh REPO="kud/ambre" DEST="$HOME/.ambre" print "ambre — bootstrapping ${DEST}" # Command Line Tools are what provide git on a fresh Mac. Already-present is not # an error, so test for it rather than trusting xcode-select --install's status. if ! xcode-select -p >/dev/null 2>&1; then print "Installing Command Line Tools — accept the dialog, then run this again." xcode-select --install exit 1 fi if [[ -d "$DEST" ]]; then print "${DEST} already exists — skipping clone." else #