From 30352b83a86422801ca59e273804edf775fa619e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 14 Aug 2007 14:36:33 +0200 Subject: [PATCH] Always print return code --- ccollect.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 260fae6..808b4a2 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -489,8 +489,10 @@ while [ "$i" -lt "$no_sources" ]; do ret=$? + echo "Rsync return code: $ret." + if [ "$ret" -ne 0 ]; then - echo "rsync reported error $ret. The backup may be broken (see rsync errors)." + echo "Warning: rsync exited non-zero, the backup may be broken (see rsync errors)." fi #