diff --git a/localdump.sh b/localdump.sh
index a4670215121d2f55345596298c3531ab5f86971e..2d8be9d7ba402b0f4e1db7235ee0b2d6ab83e7fa 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