diff --git a/common/dialog.sh b/common/dialog.sh index fdb0a67..ec1c9aa 100644 --- a/common/dialog.sh +++ b/common/dialog.sh @@ -36,7 +36,7 @@ ask_list() # $3 - (optional) default value local M_DEFAULT eval M_DEFAULT="\$$1" - local M_ALL=$M_DEFAULT + local M_DEFAULT_VAR="$M_DEFAULT" local M="" m [ -n "$3" ] && { find_str_in_list "$M_DEFAULT" "$2" || M_DEFAULT="$3" ;} @@ -53,5 +53,5 @@ ask_list() echo selected : $M eval $1="\"$M\"" - [ "$M" != "$M_DEFAULT" ] + [ "$M" != "$M_DEFAULT_VAR" ] }