aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc
index d8dfb3b..8071c32 100644
--- a/lib/hydra/misc
+++ b/lib/hydra/misc
@@ -15,6 +15,13 @@ function hydra_set_env {
export HYDRA_FOLDER="`hydra_eval_parameter $HYDRA`"
export PREFERENCES="$HOME/.hydra/$HYDRA"
fi
+
+ if [ "$ACTION" != "register" ] && [ "$ACTION" != "init" ]; then
+ if [ -z "$HYDRA_FOLDER" ] || [ ! -d "$HYDRA_FOLDER" ]; then
+ echo "hydra $HYDRA not configured, aborting"
+ exit 1
+ fi
+ fi
}
# Read a parameter from user