From: tierno Date: Tue, 4 Oct 2016 08:24:42 +0000 (+0000) Subject: bug getting parameters at initopenvim X-Git-Tag: v1.0.0~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F491%2F1;p=osm%2Fopenvim.git bug getting parameters at initopenvim Signed-off-by: tierno --- diff --git a/scripts/initopenvim.sh b/scripts/initopenvim.sh index 7d04f6c..44fe9e2 100755 --- a/scripts/initopenvim.sh +++ b/scripts/initopenvim.sh @@ -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