diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-04-09 10:40:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-04-09 10:40:13 -0300 |
commit | 4294b31674e6b3e5dc60b0a1e9938f2d6a87142e (patch) | |
tree | 08164956b3795f34c811c6c272084508fac9d23d /lib | |
parent | 56ae953d15a2853c2cf5ae1980a2605446100090 (diff) | |
download | hydra-4294b31674e6b3e5dc60b0a1e9938f2d6a87142e.tar.gz hydra-4294b31674e6b3e5dc60b0a1e9938f2d6a87142e.tar.bz2 |
Fix command check for hydractl
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/misc | 2 |
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 |