From 65529b6fca5915438612c161c01fe7b57c2a59b1 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 10 Feb 2017 14:14:21 -0600 Subject: ds-identify: fix checking for filesystem label has_fs_with_label regressed when refactoring to not have leading and trailing , in DI_FS_LABELS. LP: #1663735 --- tools/ds-identify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ds-identify b/tools/ds-identify index e454ed6d..3ba36f8f 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -386,8 +386,8 @@ dmi_sys_vendor_is() { } has_fs_with_label() { - local label=",$1," - case "${DI_FS_LABELS}" in + local label="$1" + case ",${DI_FS_LABELS}," in *,$label,*) return 0;; esac return 1 -- cgit v1.2.3