From 39e8eb4c948bb11cec0b117c47e3e92c3d286480 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 30 Oct 2009 19:45:03 +0100 Subject: [PATCH] fix incomplete output message Signed-off-by: Nico Schottelius --- ccollect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 13cc7b2..2fe7a33 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -435,8 +435,8 @@ while [ "${i}" -lt "${no_sources}" ]; do pcmd ls -1 "${ddir}/"*"${CMARKER}" > "${TMP}" 2>/dev/null; ret=$? - if [ "$ret" -eq 0 ]; then - _techo "Incomplete backups: ${incomplete}" + if [ "${ret}" -eq 0 ]; then + _techo "Incomplete backups: $(echo $(cat "${TMP}"))" if [ -f "${c_delete_incomplete}" ]; then delete_from_file "${TMP}" "${CMARKER}" fi