From 1e098b3b19ae5cdf3b324e15541bb7888728703c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 28 Feb 2014 15:33:49 -0300 Subject: Fatal error when no domain config is set --- share/hydra/sync | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3