From c313ac8f494de4b91f71fff372a1bbf16df90322 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 25 Jun 2006 10:44:02 +0200 Subject: [PATCH] Report return code of rsync on failure. --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 5cd5533..4845a06 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -408,7 +408,7 @@ while [ "$i" -lt "$no_sources" ]; do "$source" "$abs_destination_dir" if [ "$?" -ne 0 ]; then - echo "rsync reported an error. The backup may be broken (see rsync errors)" + echo "rsync reported error $?. The backup may be broken (see rsync errors)" fi echo "$($DDATE) Finished backup"