sh/functions.sh.in: return a different value for invalid input in yesno()
This commit is contained in:
parent
0f704402a2
commit
e10afc8e75
@ -46,7 +46,7 @@ yesno()
|
||||
case "$value" in
|
||||
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) return 0;;
|
||||
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) return 1;;
|
||||
*) vewarn "\$$1 is not set properly"; return 1;;
|
||||
*) vewarn "\$$1 is not set properly"; return 2;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user