From 366fc03237ec8fcd7892e9b9b78495c384f552ff Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 22 Mar 2019 14:08:46 +0100 Subject: [PATCH] print duplicate labels on a single line --- evocheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index ed93474..2f77cc2 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -1017,7 +1017,8 @@ if is_debian; then # If there is no duplicate, uniq will have no output # So, if $tmpOutput is not null, there is a duplicate if [ -n "$tmpOutput" ]; then - failed "IS_DUPLICATE_FS_LABEL" "Duplicate labels: $tmpOutput" + labels=$(echo -n $tmpOutput | tr '\n' ' ') + failed "IS_DUPLICATE_FS_LABEL" "Duplicate labels: $labels" fi rm $tmpFile fi