#!/bin/sh # Copy the installers from the source repo into this one. # # agent-standups is canonical: install.sh and install.ps1 are tracked there, # the probe harness reads them from the repo root (run-all.sh passes # $REPO/install.sh to the R06 probes), and P8-24 copies them. This repo is the # public face, so the files are copied rather than symlinked -- Gitea's raw/ # endpoint serves a symlink's link text, which would pipe a path into the # user's shell instead of a script. # # Run this before committing here, whenever the installers change. set -eu SRC="${1:-../agent-standups}" [ -f "$SRC/install.sh" ] || { echo "error: no install.sh under $SRC" >&2; exit 1; } changed=0 for f in install.sh install.ps1; do if ! cmp -s "$SRC/$f" "$f" 2>/dev/null; then cp "$SRC/$f" "$f" echo " updated $f" changed=1 fi done chmod +x install.sh [ "$changed" = 1 ] || echo " already in sync with $SRC"