Bootstrap

pi-cyberneticscriptbash
Path: pi-cybernetic/phase0-gate-governance/bootstrap.shRelative: phase0-gate-governance/bootstrap.shSubproject: pi-cyberneticCategory: scripts
Lines: 104Bytes: 4,432Imports: 0Exports: 0

Content Preview

  1. #!/usr/bin/env bash
  2. # bootstrap.sh — install Phase 0 gate governance into a target repo.
  3. #
  4. # Usage: ./bootstrap.sh /home/mikes/leverage-loops-projects/loom-builder [--with-remote]
  5. #
  6. # Idempotent: safe to re-run. Every step reports; nothing is silent.
  7. # --with-remote additionally creates a private GitHub remote via `gh` and
  8. # pushes (requires an authenticated gh CLI; skipped otherwise).
  9. set -euo pipefail
  10. PKG="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  11. REPO="${1:?usage: bootstrap.sh /path/to