Merge "borg-backup: fix backup script failure match"

This commit is contained in:
Zuul 2021-02-11 22:06:31 +00:00 committed by Gerrit Code Review
commit a326daed61

View File

@ -47,8 +47,8 @@ do
if [[ ${_status[0]} -ne 0 ]]; then
info "Streaming script ${f} failed!"
stream_exit=${_status[0]}
elif [[ ${_status[1]} -ne 1 ]]; then
info "Borg failed!"
elif [[ ${_status[1]} -ne 0 ]]; then
info "Borg failed (rc: ${_status[1]})!"
stream_exit=${_status[1]}
else
stream_exit=0