Improved InterfaceUtils function return value.
This commit is contained in:
parent
79c406a5cf
commit
0b9f8413f4
|
@ -190,6 +190,7 @@ function interface_prompt() {
|
||||||
if [ ${#__interface_prompt__ifAvailable[@]} -eq 1 -a ${__interface_prompt__ifAvailableState[0]} = "[+]" ]; then
|
if [ ${#__interface_prompt__ifAvailable[@]} -eq 1 -a ${__interface_prompt__ifAvailableState[0]} = "[+]" ]; then
|
||||||
InterfacePromptWISelected="${__interface_prompt__ifAvailable[0]}"
|
InterfacePromptWISelected="${__interface_prompt__ifAvailable[0]}"
|
||||||
InterfacePromptWISelectedState="[+]" # It passed the condition, it must be +
|
InterfacePromptWISelectedState="[+]" # It passed the condition, it must be +
|
||||||
|
InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}"
|
||||||
else
|
else
|
||||||
format_apply_autosize "$CRed[$CYel%1d$CRed]%b %-8b %3s %-*.*s\n"
|
format_apply_autosize "$CRed[$CYel%1d$CRed]%b %-8b %3s %-*.*s\n"
|
||||||
io_query_format_fields "$1" "$FormatApplyAutosize" \
|
io_query_format_fields "$1" "$FormatApplyAutosize" \
|
||||||
|
@ -200,5 +201,6 @@ function interface_prompt() {
|
||||||
|
|
||||||
InterfacePromptIfSelected="${IOQueryFormatFields[1]}"
|
InterfacePromptIfSelected="${IOQueryFormatFields[1]}"
|
||||||
InterfacePromptIfSelectedState="${IOQueryFormatFields[2]}"
|
InterfacePromptIfSelectedState="${IOQueryFormatFields[2]}"
|
||||||
|
InterfacePromptWISelectedInfo="${IOQueryFormatFields[3]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue