summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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=