summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-05 17:43:10 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-05 17:43:10 +0100
commitc1202f83da0f6286ec1f984e34bd544d0cce1d0b (patch)
treed2a77d2f8153f8badaee94181e9485179b883011 /src
parent2d77f595a405ebd5668cbea87b0f55177e316372 (diff)
cleaner
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-ui-interactive.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 74b4fbb..7e4a995 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -409,9 +409,10 @@ interactive_filesystems() {
part=$ANSWER_OPTION
# TODO: Something goes wrong here.. all these 3 become the complete line
- part_type=` awk "/^${part//\//\\\/}/ {print \$2}" $BLOCK_DATA` # the bash substition replaces all /'s with \/'s otherwise awk complains
- part_label=`awk "/^${part//\//\\\/}/ {print \$3}" $BLOCK_DATA`
- fs=` awk "/^${part//\//\\\/}/ {print \$4}" $BLOCK_DATA`
+ declare part_escaped=${part//\//\\/} # the bash substition replaces all /'s with \/'s otherwise awk complains
+ 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`
[ "$part_label" == no_label ] && part_label=
[ "$fs" == no_fs ] && fs=