#!/usr/bin/env bash # Generate install-probe.sh from install.sh. install.sh is the only installer you edit; the # probe installer is the same script with NETMON_ROLE=probe and its own header comment. # tests/test_installers.py fails when install-probe.sh is out of date. set -euo pipefail cd "$(dirname "$0")/.." RAW=https://git.neilbantoc.dev/services/network-monitor/raw/branch/main out=install-probe.sh [ "${1:-}" = --check ] && out=$(mktemp) { cat <
"$out" if [ "${1:-}" = --check ]; then if cmp -s "$out" install-probe.sh; then rm -f "$out"; echo "install-probe.sh is up to date"; exit 0; fi rm -f "$out"; echo "install-probe.sh is out of date: run scripts/build-installers.sh" >&2; exit 1 fi chmod +x install-probe.sh echo "wrote install-probe.sh"