summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-24 22:18:42 +0000
committerdavidovski <david@davidovski.xyz>2021-11-24 22:18:42 +0000
commit1077c9387f60f0ef371514cc289075a2720370cc (patch)
tree2a3790544a10c76027a13c71bee35ef5d96d8d05
parent29aca1e36f959b813a4c5f50daf3cdfd38cf50c4 (diff)
added accepting multiple sources to sync to
-rwxr-xr-xbuild-repo.sh4
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 () {