Skip to content

Commit

Permalink
Don't preserve local permissions for --extra-files
Browse files Browse the repository at this point in the history
  • Loading branch information
phaer committed Dec 29, 2022
1 parent 8ed88da commit fe4e263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos-remote
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ if [[ -n ${extra_files:-} ]]; then
if [[ -d "$extra_files" ]]; then
extra_files="$extra_files/"
fi
rsync -vaAXF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection#ssh://}:/mnt/"
rsync -vrlF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection#ssh://}:/mnt/"
fi
ssh_ << SSH
set -efu
Expand Down

0 comments on commit fe4e263

Please sign in to comment.