From 8c7256ca10c45dc96a09658c6ed3c6977c8e9a6c Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Tue, 13 Jul 2021 13:42:08 +0200 Subject: [PATCH] show error if restore was not started --- localdump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localdump.sh b/localdump.sh index a467021..2d8be9d 100755 --- a/localdump.sh +++ b/localdump.sh @@ -364,7 +364,7 @@ else . $BACKUP_SCRIPT $mode "${sDumpfile}" "${sTargetDb}" - if [ $rc -ne 0 ]; then + if [ $? -ne 0 -o $rc -ne 0 ]; then color error echo ERROR: $mode failed. See ouput above. :-/ color reset -- GitLab