diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/misc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc index f086fb7..492a2bb 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -17,7 +17,10 @@ function hydra_set_env { fi if [ "$NAME" == "hydra" ]; then - if [ "$ACTION" != "register" ] && [ "$ACTION" != "init" ]; then + if [ -z "$HYDRA" ]; then + hydra_action_usage + exit 1 + elif [ "$ACTION" != "register" ] && [ "$ACTION" != "init" ]; then if [ -z "$HYDRA_FOLDER" ] || [ ! -d "$HYDRA_FOLDER" ]; then echo "hydra $HYDRA not configured, aborting" exit 1 |