mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 08:03:44 +00:00
remove fallback (#42)
This commit is contained in:
parent
22e76a1c95
commit
4161e28aed
1 changed files with 5 additions and 5 deletions
|
|
@ -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")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue