Merge "borg-backup: fix backup script failure match"
This commit is contained in:
commit
a326daed61
@ -47,8 +47,8 @@ do
|
|||||||
if [[ ${_status[0]} -ne 0 ]]; then
|
if [[ ${_status[0]} -ne 0 ]]; then
|
||||||
info "Streaming script ${f} failed!"
|
info "Streaming script ${f} failed!"
|
||||||
stream_exit=${_status[0]}
|
stream_exit=${_status[0]}
|
||||||
elif [[ ${_status[1]} -ne 1 ]]; then
|
elif [[ ${_status[1]} -ne 0 ]]; then
|
||||||
info "Borg failed!"
|
info "Borg failed (rc: ${_status[1]})!"
|
||||||
stream_exit=${_status[1]}
|
stream_exit=${_status[1]}
|
||||||
else
|
else
|
||||||
stream_exit=0
|
stream_exit=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user