Skip to content

Commit

Permalink
also pass ssh_args to rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Aug 5, 2023
1 parent 9df7987 commit 622e00a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ if [[ -n ${extra_files-} ]]; then
extra_files="$extra_files/"
fi
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
fi

Expand Down

0 comments on commit 622e00a

Please sign in to comment.