diff options
author | davidovski <david@davidovski.xyz> | 2021-11-24 22:18:42 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-11-24 22:18:42 +0000 |
commit | 1077c9387f60f0ef371514cc289075a2720370cc (patch) | |
tree | 2a3790544a10c76027a13c71bee35ef5d96d8d05 /build-repo.sh | |
parent | 29aca1e36f959b813a4c5f50daf3cdfd38cf50c4 (diff) |
added accepting multiple sources to sync to
Diffstat (limited to 'build-repo.sh')
-rwxr-xr-x | build-repo.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build-repo.sh b/build-repo.sh index f4cd0d5..71ef23c 100755 --- a/build-repo.sh +++ b/build-repo.sh @@ -150,7 +150,9 @@ clean () { } sync () { - [[ $# = 0 ]] || rsync -vLta --no-perms --no-owner --no-group --delete -z -e ssh ./dist/ $1 + for i in $@; do + [[ $# = 0 ]] || rsync -vLta --no-perms --no-owner --no-group --delete -z -e ssh ./dist/ $i + done; } index () { |