mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
also pass ssh_args to rsync
This commit is contained in:
parent
9df79870b0
commit
622e00afbb
@ -429,7 +429,10 @@ if [[ -n ${extra_files-} ]]; then
|
|||||||
extra_files="$extra_files/"
|
extra_files="$extra_files/"
|
||||||
fi
|
fi
|
||||||
step Copying extra files
|
step Copying extra files
|
||||||
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
|
rsync -rlpv -FF \
|
||||||
|
-e "ssh -i \"$ssh_key_dir\"/nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${ssh_args[*]}" \
|
||||||
|
"$extra_files" \
|
||||||
|
"${ssh_connection}:/mnt/"
|
||||||
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
|
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user