diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-01-12 09:47:56 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-01-12 09:47:56 -0200 |
commit | 8ba79775b8e359158184e1855e32fcf9603b5931 (patch) | |
tree | e39be6b90597d3d59f18f4c25a987f51f877e3a7 | |
parent | 278b8be9ab6232add05db600fed58568eb6e7e52 (diff) | |
download | hydra-8ba79775b8e359158184e1855e32fcf9603b5931.tar.gz hydra-8ba79775b8e359158184e1855e32fcf9603b5931.tar.bz2 |
Support for command line parameters at sync
-rwxr-xr-x | share/hydra/sync | 6 |
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 |