forked from ungleich-public/cdist
use $__remote_exec for RSYNC_RSH
This commit is contained in:
parent
0e611af2a6
commit
46b5c24cd2
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,8 @@ fi
|
|||
# 4. to understand how that cryptic regex works, please
|
||||
# open rsync manpage and read about --itemize-changes.
|
||||
|
||||
export RSYNC_RSH="$__remote_exec"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
if ! rsync --dry-run --itemize-changes $options "$src" "$remote_user@$__target_host:$dst" \
|
||||
| grep -E '^(<|>|c|h|\.|\*)[fdL][cstTpogunbax\.\+\?]+\s' >&2
|
||||
|
@ -97,4 +99,6 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
echo "export RSYNC_RSH='$__remote_exec'"
|
||||
|
||||
echo "rsync $options $src $remote_user@$__target_host:$dst"
|
||||
|
|
Loading…
Reference in a new issue