aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-04-09 10:40:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-04-09 10:40:13 -0300
commit4294b31674e6b3e5dc60b0a1e9938f2d6a87142e (patch)
tree08164956b3795f34c811c6c272084508fac9d23d /lib
parent56ae953d15a2853c2cf5ae1980a2605446100090 (diff)
downloadhydra-4294b31674e6b3e5dc60b0a1e9938f2d6a87142e.tar.gz
hydra-4294b31674e6b3e5dc60b0a1e9938f2d6a87142e.tar.bz2
Fix command check for hydractl
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