From 8ba79775b8e359158184e1855e32fcf9603b5931 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 12 Jan 2012 09:47:56 -0200 Subject: Support for command line parameters at sync --- share/hydra/sync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.2.3