Always print return code
This commit is contained in:
parent
d08ac69af6
commit
30352b83a8
1 changed files with 3 additions and 1 deletions
|
@ -489,8 +489,10 @@ while [ "$i" -lt "$no_sources" ]; do
|
||||||
|
|
||||||
ret=$?
|
ret=$?
|
||||||
|
|
||||||
|
echo "Rsync return code: $ret."
|
||||||
|
|
||||||
if [ "$ret" -ne 0 ]; then
|
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
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue