From e88bb5ccff9e8ce1028e94aadb15fc4707e6f784 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 15 Dec 2008 11:53:12 +0100 Subject: fix for too many matches --- src/core/libs/lib-ui-interactive.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/libs') diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 1ed844e..042b88e 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -433,9 +433,9 @@ interactive_filesystems() { 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}" $TMP_BLOCKDEVICES) - part_label=$(awk "/^$part_escaped/ {print \$3}" $TMP_BLOCKDEVICES) - fs=$( awk "/^$part_escaped/ {print \$4}" $TMP_BLOCKDEVICES) + part_type=$( awk "/^$part_escaped / {print \$2}" $TMP_BLOCKDEVICES) + part_label=$(awk "/^$part_escaped / {print \$3}" $TMP_BLOCKDEVICES) + fs=$( awk "/^$part_escaped / {print \$4}" $TMP_BLOCKDEVICES) [ "$part_label" == no_label ] && part_label= [ "$fs" == no_fs ] && fs= -- cgit v1.2.3-54-g00ecf