]> gitweb.fluxo.info Git - hydra.git/commitdiff
Support for command line parameters at sync
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Jan 2012 11:47:56 +0000 (09:47 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Jan 2012 11:47:56 +0000 (09:47 -0200)
share/hydra/sync

index 489fbfc4e186d0ca70f9d72ad7c1b6f1ebc9c056..2d59647a2377d31e75b7ecc97c51a0d05888c01e 100755 (executable)
@@ -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