From 4161e28aed957e5876327ab803fb085954302c7b Mon Sep 17 00:00:00 2001 From: Hari <73809867+harivansh-afk@users.noreply.github.com> Date: Thu, 2 Apr 2026 17:19:18 -0400 Subject: [PATCH] remove fallback (#42) --- scripts/sync-agent-history.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/sync-agent-history.sh b/scripts/sync-agent-history.sh index 26d9768..8d7b471 100755 --- a/scripts/sync-agent-history.sh +++ b/scripts/sync-agent-history.sh @@ -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")"