summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-11-03 20:35:36 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-11-03 20:35:36 +0100
commit148d75ff647feae64c563dfb73f4d650a9b14c4b (patch)
treea746dd59da4a3b7c190292ca54154ff8a62fb12c /src/core/libs/lib-ui.sh
parente064295974659027d021d01237292025068dfc10 (diff)
fixes for broken interactive_configure_system, interactive_get_editor, _dia_ask_option, configure_system and worker_install_bootloader
Diffstat (limited to 'src/core/libs/lib-ui.sh')
-rw-r--r--src/core/libs/lib-ui.sh17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index 91cfca9..c3c0dcb 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -185,8 +185,10 @@ _dia_ask_option ()
DIA_MENU_TITLE=$2
shift 2
_dia_DIALOG $DEFAULT --colors --title " $DIA_MENU_TITLE " --menu "$DIA_MENU_TEXT" 16 55 8 "$@" 2>$ANSWER
+ ret=$?
ANSWER_OPTION=`cat $ANSWER`
echo $ANSWER_OPTION
+ return $ret
}
@@ -215,21 +217,6 @@ _cli_ask_option ()
}
-# geteditor(). taken from original setup code. prepended dia_ because power users just export $EDITOR on the cmdline.
-# prompts the user to choose an editor
-# sets EDITOR global variable
-#
-# TODO: clean this up
-_dia_get_editor() {
- _dia_DIALOG --menu "Select a Text Editor to Use" 10 35 3 \
- "1" "nano (easier)" \
- "2" "vi" 2>$ANSWER
- case $(cat $ANSWER) in
- "1") EDITOR="nano" ;;
- "2") EDITOR="vi" ;;
- *) EDITOR="nano" ;;
- esac
-}
# TODO: pass disks as argument to decouple backend logic
# Get a list of available disks for use in the "Available disks" dialogs. This