summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpyther@pyther.net <pyther@pyther.net>2011-02-09 16:47:35 -0500
committerDieter Plaetinck <dieter@plaetinck.be>2011-02-10 21:32:30 +0100
commit4f201a71bf583aca3faf55b1423108012b1e8a5c (patch)
tree6db39193d38e0921ce7d1c454478c1d6c55c540b
parentba840a69a5618e0c6b5f21d4a3e9c3239abf2763 (diff)
Make helptext variables local
Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
-rw-r--r--src/core/libs/lib-ui-interactive.sh3
1 files changed, 2 insertions, 1 deletions
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/<filename> 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