mirror of
https://github.com/bol-van/zapret.git
synced 2026-03-08 06:15:26 +00:00
AI inspired fixes
This commit is contained in:
@@ -37,8 +37,7 @@ ask_list()
|
||||
local M_DEFAULT
|
||||
eval M_DEFAULT="\$$1"
|
||||
local M_ALL=$M_DEFAULT
|
||||
local M=""
|
||||
local m
|
||||
local M="" m
|
||||
|
||||
[ -n "$3" ] && { find_str_in_list "$M_DEFAULT" "$2" || M_DEFAULT="$3" ;}
|
||||
|
||||
@@ -54,5 +53,5 @@ ask_list()
|
||||
echo selected : $M
|
||||
eval $1="\"$M\""
|
||||
|
||||
[ "$M" != "$M_OLD" ]
|
||||
[ "$M" != "$M_DEFAULT" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user