remove fallback (#42)
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions

This commit is contained in:
Hari 2026-04-02 17:19:18 -04:00 committed by GitHub
parent 22e76a1c95
commit 4161e28aed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,17 +4,17 @@ set -euo pipefail
remote="${AGENT_HISTORY_REMOTE:-netty}" remote="${AGENT_HISTORY_REMOTE:-netty}"
remote_root="${AGENT_HISTORY_REMOTE_ROOT:-/home/rathi/.local/share/agent-history/raw/darwin}" remote_root="${AGENT_HISTORY_REMOTE_ROOT:-/home/rathi/.local/share/agent-history/raw/darwin}"
local_rsync="$(command -v rsync || true)" local_rsync="$(command -v rsync || true)"
remote_rsync="$(ssh "$remote" 'command -v rsync || true')"
if [[ -z "$local_rsync" ]]; then if [[ -z "$local_rsync" ]]; then
printf 'rsync is not available locally.\n' >&2 printf 'rsync is not available locally.\n' >&2
exit 1 exit 1
fi fi
if ssh "$remote" 'command -v rsync >/dev/null 2>&1'; then if [[ -z "$remote_rsync" ]]; then
remote_rsync='rsync' printf 'rsync is not available on %s.\n' "$remote" >&2
else printf 'Deploy netty after adding rsync to the package set, then run this again.\n' >&2
remote_rsync='nix --extra-experimental-features nix-command --extra-experimental-features flakes shell nixpkgs#rsync -c rsync' exit 1
printf 'Remote rsync not found on %s - using a temporary nix shell fallback.\n' "$remote" >&2
fi fi
remote_root_q="$(printf '%q' "$remote_root")" remote_root_q="$(printf '%q' "$remote_root")"