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