IS_DUPLICATE_FS_LABEL: Add verbose mode

This commit is contained in:
Benoît S. 2019-02-12 12:03:59 +01:00
parent a9d26a49b4
commit a099ba5f40

View file

@ -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