mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +03:00
Merge pull request #15 from phaer/rsync-perms
Don't preserve local permissions for --extra-files
This commit is contained in:
commit
f2d7372f08
@ -211,7 +211,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}:/mnt/"
|
||||
rsync -vrlF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
|
||||
fi
|
||||
ssh_ << SSH
|
||||
set -efu
|
||||
|
Loading…
Reference in New Issue
Block a user