Fix odd return line in verbose mode

This commit is contained in:
Victor LABORIE 2019-01-17 11:02:40 +01:00
parent 3cfa884a6f
commit 6bfe6eb9a7

View file

@ -128,7 +128,7 @@ IS_RSYNC=1
# Verbose function
verbose() {
msg="${1:-$(cat /dev/stdin)}"
[ "${VERBOSE}" -eq 1 ] && echo "${msg}"
[ "${VERBOSE}" -eq 1 ] && [ -n "${msg}" ] && echo "${msg}"
}
# Source configuration file