From a099ba5f402adcc8d0349dc915a8ab823f3330b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Tue, 12 Feb 2019 12:03:59 +0100 Subject: [PATCH] IS_DUPLICATE_FS_LABEL: Add verbose mode --- evocheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 4364a2a..d62ab82 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -782,8 +782,10 @@ if [ -e /etc/debian_version ]; then # So, if $tmpOutput is not null, there is a duplicate if [ -n "$tmpOutput" ]; then echo 'IS_DUPLICATE_FS_LABEL FAILED!' - # For debug, you may echo the contents of $tmpOutput - # echo $tmpOutput + if [ "$VERBOSE" = 1 ]; then + echo "Duplicate labels:" + echo -e "$tmpOutput\n" + fi fi rm $tmpFile fi