From 3cb81442d6bd49de58dd6f31d5f7c4d74081d361 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 3 Nov 2008 16:43:36 +0100 Subject: trying stdout from ask_option.. this should work.. --- src/core/procedures/interactive | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive index 52a6dbf..6e7d203 100644 --- a/src/core/procedures/interactive +++ b/src/core/procedures/interactive @@ -64,7 +64,7 @@ mainmenu() { default=no [ -n "$NEXTITEM" ] && default="$NEXTITEM" - ask_option $default "MAIN MENU" \ + answer=`ask_option $default "MAIN MENU" \ "0" "Select Source" \ "1" "Set Clock" \ "2" "Prepare Hard Drive" \ @@ -72,9 +72,9 @@ mainmenu() "4" "Install Packages" \ "5" "Configure System" \ "6" "Install Bootloader" \ - "7" "Exit Install" - NEXTITEM="$(cat $ANSWER)" - case $(cat $ANSWER) in + "7" "Exit Install"` + NEXTITEM="$answer" + case $answer in "0") execute worker select_source; ret=$? if [ $ret -eq 0 -a "$var_PKG_SOURCE_TYPE" = "ftp" ]; then -- cgit v1.2.3-54-g00ecf