diff options
Diffstat (limited to 'share/hydra/install')
-rwxr-xr-x | share/hydra/install | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/share/hydra/install b/share/hydra/install index 6a3c07f..00154b7 100755 --- a/share/hydra/install +++ b/share/hydra/install @@ -28,15 +28,14 @@ if [ -z "$NODES" ]; then NODES="`hydra $HYDRA nodes`" fi -# Validation -if [ -z "$ORIGIN" ]; then - ORIGIN="git://git.fluxo.info/hydra.git" -else - ORIGIN_CONFIG="`hydra $HYDRA config git`" +# Get origin +ORIGIN_CONFIG="`hydra $HYDRA config git`" - if [ ! -z "$ORIGIN_CONFIG" ]; then - ORIGIN="$ORIGIN_CONFIG/hydra.git" - fi +# Validate origin +if [ ! -z "$ORIGIN_CONFIG" ]; then + ORIGIN="$ORIGIN_CONFIG/hydra.git" +else + ORIGIN="git://git.fluxo.info/hydra.git" fi # Deploy |