fix needed answer "YES" in protocol section

This commit is contained in:
Dirk 2017-12-29 23:14:14 +01:00
parent 85c470fcdc
commit c4c8ff4434

View File

@ -14591,7 +14591,15 @@ ignore_no_or_lame() {
[[ "$WARNINGS" == batch ]] && return 1
tm_warning "$1 --> "
read a
if [[ "$a" == "$(tolower "$2")" ]]; then
if [[ "$2" == "$(toupper "$2")" ]]; then
# all uppercase requested
if [[ "$a" == "$2" ]]; then
return 0
else
return 1
fi
elif [[ "$2" == "$(tolower "$a")" ]]; then
# we normalize the word to continue
return 0
else
return 1