mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
Add port flag to remote_rsync_from
Ass ${FLAGS_ssh_port} to ssh arguments for rsync BUG=chromium-os:9187 TEST=Run rsync-related script with port argument Change-Id: Iefabef230cfff03dcd66ac0c24798bb4b13ce40d Review URL: http://codereview.chromium.org/4998004
This commit is contained in:
parent
b49c6df754
commit
b94e40293d
@ -23,7 +23,7 @@ function remote_cp_to() {
|
||||
# Copies a list of remote files specified in file $1 to local location
|
||||
# $2. Directory paths in $1 are collapsed into $2.
|
||||
function remote_rsync_from() {
|
||||
rsync -e "ssh -o StrictHostKeyChecking=no -o \
|
||||
rsync -e "ssh -p ${FLAGS_ssh_port} -o StrictHostKeyChecking=no -o \
|
||||
UserKnownHostsFile=$TMP_KNOWN_HOSTS" --no-R \
|
||||
--files-from=$1 root@${FLAGS_remote}:/ $2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user