From: Silvio Rhatto Date: Fri, 28 Feb 2014 18:33:49 +0000 (-0300) Subject: Fatal error when no domain config is set X-Git-Tag: 0.2.1~3 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1e098b3b19ae5cdf3b324e15541bb7888728703c;p=hydra.git Fatal error when no domain config is set --- diff --git a/share/hydra/sync b/share/hydra/sync index 25dccfd..c281478 100755 --- a/share/hydra/sync +++ b/share/hydra/sync @@ -31,6 +31,8 @@ function hydra_sync { url="`cat $HYDRA_FOLDER/config/repository/url`" else if [ ! -e "$HYDRA_FOLDER/config/domain" ]; then + echo "Please set domain configuration" + exit 1 fi url="gitolite@admin.`cat $HYDRA_FOLDER/config/domain`:$repository" fi