From: Silvio Rhatto Date: Sat, 9 Apr 2016 13:40:13 +0000 (-0300) Subject: Fix command check for hydractl X-Git-Tag: 0.2.4~186 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4294b31674e6b3e5dc60b0a1e9938f2d6a87142e;p=hydra.git Fix command check for hydractl --- diff --git a/lib/hydra/misc b/lib/hydra/misc index 8071c32..9ffc72a 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -16,7 +16,7 @@ function hydra_set_env { export PREFERENCES="$HOME/.hydra/$HYDRA" fi - if [ "$ACTION" != "register" ] && [ "$ACTION" != "init" ]; then + if [ "$NAME" == "hydra" ] && [ "$ACTION" != "register" ] && [ "$ACTION" != "init" ]; then if [ -z "$HYDRA_FOLDER" ] || [ ! -d "$HYDRA_FOLDER" ]; then echo "hydra $HYDRA not configured, aborting" exit 1