summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-24 20:01:18 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-24 20:01:18 +0100
commita257173de88e39529747fcaca30b2a23ac7dfdc1 (patch)
tree27efbfa2a581cec1c6d17b0df75866e83a437697 /src/core
parent97e09bbe1bf0102fc0932097b499ad8a35e8059e (diff)
prevent breakage when filesystem labels contain spaces
Diffstat (limited to 'src/core')
-rw-r--r--src/core/libs/lib-ui-interactive.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 239eab0..245c651 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -485,8 +485,8 @@ interactive_filesystem ()
then
default=
[ -n "$fs_label" ] && default="$fs_label"
- ask_string "Enter the label for this $fs_type on $part (optional)" "$default" 0
- fs_label=$ANSWER_STRING
+ ask_string "Enter the label for this $fs_type on $part (optional) [keep it short and don't use spaces]" "$default" 0
+ fs_label=${ANSWER_STRING// } # strip spaces to prevent problems in our bash code and to keep things simple.
fi
# ask special params, if relevant