]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fixes ACTION handling
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 18:16:43 +0000 (15:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 18:16:43 +0000 (15:16 -0300)
hydra
lib/hydra/misc

diff --git a/hydra b/hydra
index da78bc658e6642ee944bffb5b574e5c45958b62c..51c146884ad3488e02de9dbadca264395e28e497 100755 (executable)
--- a/hydra
+++ b/hydra
@@ -57,7 +57,10 @@ export NAME="$BASENAME"
 # Adjust hydra parameter
 if [ "$BASENAME" == "hydra" ]; then
   export HYDRA="$1"
+  export ACTION="$2"
   shift
+else
+  export ACTION="$1"
 fi
 
 # Load
index a3156a71367109919ebffcd077a0973de8596150..f086fb7107a2e94392fd4d8cce6262486fc453ac 100644 (file)
@@ -7,10 +7,6 @@ function hydra_set_env {
   export COMMIT="`( cd $APP_BASE && git log -n 1 --pretty=oneline 2> /dev/null | cut -d " " -f 1 )`"
   export CONFIG="$HOME/.hydra/config"
 
-  if [ -z "$ACTION" ]; then
-    export ACTION="$1"
-  fi
-
   if [ "`whoami`" != 'root' ]; then
     SUDO="sudo"
   fi