aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc2
1 files changed, 1 insertions, 1 deletions
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