From 4294b31674e6b3e5dc60b0a1e9938f2d6a87142e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 9 Apr 2016 10:40:13 -0300 Subject: Fix command check for hydractl --- lib/hydra/misc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3