summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-05 19:27:24 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-05 19:27:24 +0100
commit60e53af497d8dbe11b2305ea83b702d71ae13bd2 (patch)
treec0a2086d19d2f98f12347ed7254c87a96e60188d
parent717b25d71de73085c7dae4eee78af024993ace8e (diff)
+ sign bugfix
-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 88341bf..7fb91df 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -411,7 +411,8 @@ interactive_filesystems() {
part=$ANSWER_OPTION
- declare part_escaped=${part//\//\\/} # the bash substition replaces all /'s with \/'s otherwise awk complains
+ declare part_escaped=${part//\//\\/} # escape all slashes otherwise awk complains
+ declare part_escaped=${part_escaped/+/\\+} # escape the + sign too
part_type=$( awk "/^$part_escaped/ {print \$2}" $BLOCK_DATA)
part_label=$(awk "/^$part_escaped/ {print \$3}" $BLOCK_DATA)
fs=$( awk "/^$part_escaped/ {print \$4}" $BLOCK_DATA)