Skip to content
Snippets Groups Projects
Commit cec82335 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

FIX: exit with error if backup error occured

parent aa78838b
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
# 2022-03-07 v1.5 <axel.hahn@iml.unibe.ch> update scan for results in transfer
# 2022-03-18 v1.6 <axel.hahn@iml.unibe.ch> show dumped databases
# 2022-03-21 v1.7 <axel.hahn@iml.unibe.ch> show databases infos for couchdb2 too
# 2022-03-23 v1.8 <axel.hahn@iml.unibe.ch> FIX: exit with error if backup error occured
# ======================================================================
. $( dirname $0 )/inc_pluginfunctions
......@@ -24,8 +25,9 @@ if [ ! -x $sChecker ]; then
ph.abort "$sChecker not found - maybe clientbackup is not installed."
fi
result=$( $sChecker | sed "s#\[[0-9][0-9]*m# #g" )
result=$( $sChecker )
rc=$?
result=${result//\[[0-9][0-9]*m/ }
if [ $rc -eq 0 ]; then
ph.setStatus "ok"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment