summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui-interactive.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-08-06 21:52:08 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-08-06 21:52:08 +0200
commitcf3760102d7f2e1f5c3b0494838dafad8c081d6c (patch)
treebe7c1ce164880e5e5a12a1b4615ee0dee1cd1bea /src/core/libs/lib-ui-interactive.sh
parent2d279d782e0d65d3ebaea2ed0a76c91730580481 (diff)
FS#15800 - The submenu 'NET (ftp/http)' under 'select source' does not advance automatically to the next step
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r--src/core/libs/lib-ui-interactive.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 52f718c..586abc9 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -1277,12 +1277,14 @@ interactive_get_editor() {
select_source_extras_menu ()
{
while true; do
- ask_option no "NET (HTTP/FTP) Installation" "Make sure the network is ok and you've selected a mirror before continuing the installer" required \
+ default=no
+ [ -n "$NEXTITEM" ] && default="$NEXTITEM"
+ ask_option $default "NET (HTTP/FTP) Installation" "Make sure the network is ok and you've selected a mirror before continuing the installer" required \
"1" "$worker_runtime_network_title" \
"2" "$worker_select_mirror_title" \
"3" "Return to Main Menu" || return 1
- [ "$ANSWER_OPTION" = 1 ] && execute worker runtime_network
- [ "$ANSWER_OPTION" = 2 ] && execute worker select_mirror
+ [ "$ANSWER_OPTION" = 1 ] && execute worker runtime_network && NEXTITEM=2
+ [ "$ANSWER_OPTION" = 2 ] && execute worker select_mirror && NEXTITEM=3
[ "$ANSWER_OPTION" = 3 ] && break
done
}