From d83bf6aa594b24c154302acab5fc9f907b65adc8 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Aug 07 2011 00:13:40 +0000 Subject: Update `cli_printMessage.sh': - Add the `--as-selection-line' option. This option uses MESSAGE variable to present list of values to select and outputs the value selected. --- diff --git a/Scripts/Functions/cli_printMessage.sh b/Scripts/Functions/cli_printMessage.sh index f2c9807..d0366b5 100755 --- a/Scripts/Functions/cli_printMessage.sh +++ b/Scripts/Functions/cli_printMessage.sh @@ -144,6 +144,14 @@ function cli_printMessage { cli_printMessage "${MESSAGE}:\040" --as-notrailingnew-line ;; + --as-selection-line ) + local NAME='' + select NAME in ${MESSAGE};do + echo $NAME + break + done + ;; + --as-error-line ) # Define where the error was originated inside the # centos-art.sh script. Print out the function name and