From 0b9f8413f44a6fb80de25375cba9328b587a40be Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sat, 2 Sep 2017 14:34:47 -0500 Subject: [PATCH] Improved InterfaceUtils function return value. --- lib/InterfaceUtils.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index ede2b3f..b0186c7 100755 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -190,6 +190,7 @@ function interface_prompt() { if [ ${#__interface_prompt__ifAvailable[@]} -eq 1 -a ${__interface_prompt__ifAvailableState[0]} = "[+]" ]; then InterfacePromptWISelected="${__interface_prompt__ifAvailable[0]}" InterfacePromptWISelectedState="[+]" # It passed the condition, it must be + + InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}" else format_apply_autosize "$CRed[$CYel%1d$CRed]%b %-8b %3s %-*.*s\n" io_query_format_fields "$1" "$FormatApplyAutosize" \ @@ -200,5 +201,6 @@ function interface_prompt() { InterfacePromptIfSelected="${IOQueryFormatFields[1]}" InterfacePromptIfSelectedState="${IOQueryFormatFields[2]}" + InterfacePromptWISelectedInfo="${IOQueryFormatFields[3]}" fi }