diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-03 16:48:27 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-03 16:48:27 +0100 |
commit | f2f17eca7cd3cc0c9ba5318d2c485ebedb2a19bf (patch) | |
tree | 892cbb57f45c617ab2cfe6a36b6e2d4f7889869c /src/core/procedures/interactive | |
parent | 3cb81442d6bd49de58dd6f31d5f7c4d74081d361 (diff) |
set $ANSWER_OPTION in ask_option and use it, because capturing stdout didnt work
Diffstat (limited to 'src/core/procedures/interactive')
-rw-r--r-- | src/core/procedures/interactive | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive index 6e7d203..82b2d26 100644 --- a/src/core/procedures/interactive +++ b/src/core/procedures/interactive @@ -64,7 +64,7 @@ mainmenu() { default=no [ -n "$NEXTITEM" ] && default="$NEXTITEM" - answer=`ask_option $default "MAIN MENU" \ + 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="$answer" - case $answer in + "7" "Exit Install" + NEXTITEM="$ANSWER_OPTION" + case $ANSWER_OPTION in "0") execute worker select_source; ret=$? if [ $ret -eq 0 -a "$var_PKG_SOURCE_TYPE" = "ftp" ]; then |