From 4f201a71bf583aca3faf55b1423108012b1e8a5c Mon Sep 17 00:00:00 2001 From: "pyther@pyther.net" Date: Wed, 9 Feb 2011 16:47:35 -0500 Subject: Make helptext variables local Signed-off-by: Dieter Plaetinck --- src/core/libs/lib-ui-interactive.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 45d3282..6ec6a06 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -57,6 +57,7 @@ interactive_configure_system() fi local default=no + local helptext while true; do helptext="\nNote that if you want to change any file not listed here (unlikely) you can go to another tty and update ${var_TARGET_DIR}/etc/ yourself" grep -q '^/dev/mapper' $TMP_FSTAB && helptext="$helptext\n/dev/mapper/ users: Pay attention to HOOKS in mkinitcpio.conf" @@ -1075,7 +1076,7 @@ EOF interactive_grub_menulst () { generate_grub_menulst - helptext= + local helptext= grep -q '^/dev/mapper' $TMP_FSTAB && helptext=" /dev/mapper/ users: Pay attention to the kernel line!" notify "Before installing GRUB, you must review the configuration file. You will now be put into the editor. After you save your changes and exit the editor, you can install GRUB.$helptext" seteditor || return 1 -- cgit v1.2.3-54-g00ecf