From 801dec81c8389f33ac19848c1e94598ca7827db7 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 16 Jan 2026 14:18:26 +0300 Subject: [PATCH] ask_list default value fix --- common/dialog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ] }