bug getting parameters at initopenvim 91/491/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 4 Oct 2016 08:24:42 +0000 (08:24 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 4 Oct 2016 08:24:42 +0000 (08:24 +0000)
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
scripts/initopenvim.sh

index 7d04f6c..44fe9e2 100755 (executable)
@@ -60,14 +60,13 @@ function is_valid_uuid(){
 #process options
 source ${DIRNAME}/get-options.sh "force:f delete:d delete-all port:p= admin-port:P= screen-name= help:h dbname= insert-bashrc" $* || $_exit 1
 
-
 #check correct arguments
 action_list=""
 for param in $params
 do
     if [[ "$param" == reset ]] || [[ "$param" == create ]] || [[ "$param" == delete ]] || [[ "$param" == delete-all ]]
     then
-        action_list="$action_list $argument"
+        action_list="$action_list $param"
         continue
     else
         echo "invalid argument '$param'?  Type -h for help" >&2 && $_exit 1