From: Silvio Rhatto Date: Thu, 12 Jan 2012 11:47:56 +0000 (-0200) Subject: Support for command line parameters at sync X-Git-Tag: 0.1~191 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8ba79775b8e359158184e1855e32fcf9603b5931;p=hydra.git Support for command line parameters at sync --- 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