From: Don Armstrong Date: Fri, 3 Oct 2014 18:28:15 +0000 (-0700) Subject: handle multiple files to transfer in copy_from X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=83765abc890a6ad45c46ca560a01060e62586b26;p=bin.git handle multiple files to transfer in copy_from --- diff --git a/copy_from b/copy_from index 0dccff1..8cc501d 100755 --- a/copy_from +++ b/copy_from @@ -1,3 +1,9 @@ #!/bin/bash -rsync -avP "$1":$(pwd)/"$2" . +REMOTE_HOST="$1" +TRANSFER_ARGS="" +shift; +while (( "$#" )); do + rsync -avP "$REMOTE_HOST":"$(pwd)"/"$1" . + shift; +done;