]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix command check for hydractl
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Apr 2016 13:40:13 +0000 (10:40 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Apr 2016 13:40:13 +0000 (10:40 -0300)
lib/hydra/misc

index 8071c32a892fd211f7a2ddf27ac4c961ac402364..9ffc72ae2e43936d7ac5f1a501c6e40ae653ecbf 100644 (file)
@@ -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