diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-05 18:23:21 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-05 18:23:21 +0100 |
commit | c4dc338aaba9595e5e8e0372b7c2aba233b1ec2b (patch) | |
tree | 80614394798338ec89aa2f39336f0a5fb32a16c9 | |
parent | c1202f83da0f6286ec1f984e34bd544d0cce1d0b (diff) |
workaround for the weird awk problem
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 7e4a995..9f8b990 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -408,11 +408,11 @@ interactive_filesystems() { [ "$ANSWER_OPTION" == DONE ] && USERHAPPY=1 && break part=$ANSWER_OPTION - # TODO: Something goes wrong here.. all these 3 become the complete line + 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_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= |