From fee78ee9f4633c3795e329d3418a2535dffcb1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Tue, 10 Apr 2018 15:44:59 +0200 Subject: [PATCH] IS_DUPLICATE_FS_LABEL: Add a space for the grep pattern Otherwise it will match PARTLABEL, we want only LABEL. --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index c6b93f3..cc19104 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -748,7 +748,7 @@ if [ -e /etc/debian_version ]; then # Do it only if thereis blkid binary if [ -x "$(which blkid)" ]; then tmpFile=$(mktemp -p /tmp) - for part in $(blkid | grep -v raid_member | grep -Eo 'LABEL=".*"' | cut -d'"' -f2); do + for part in $(blkid | grep -v raid_member | grep -Eo ' LABEL=".*"' | cut -d'"' -f2); do echo "$part" >> "$tmpFile" done tmpOutput=$(sort < "$tmpFile" | uniq -d)