summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-12 09:47:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-12 09:47:56 -0200
commit8ba79775b8e359158184e1855e32fcf9603b5931 (patch)
treee39be6b90597d3d59f18f4c25a987f51f877e3a7 /share
parent278b8be9ab6232add05db600fed58568eb6e7e52 (diff)
downloadhydra-8ba79775b8e359158184e1855e32fcf9603b5931.tar.gz
hydra-8ba79775b8e359158184e1855e32fcf9603b5931.tar.bz2
Support for command line parameters at sync
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/sync6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydra/sync b/share/hydra/sync
index 489fbfc..2d59647 100755
--- a/share/hydra/sync
+++ b/share/hydra/sync
@@ -19,7 +19,11 @@ source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load
# Basic parameters.
-REPOSITORIES="bootless dns gitosis/public gitosis/private puppet"
+if [ -z "$1" ]; then
+ REPOSITORIES="bootless dns gitosis/public gitosis/private puppet"
+else
+ REPOSITORIES="$*"
+fi
# Sync each repository.
for repository in $REPOSITORIES; do