From 41077828cbb11a9c904bce8b2c6d2c709fd18ecd Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Wed, 9 Feb 2022 14:29:27 +0100
Subject: [PATCH] check: shorten increment

---
 check_clientbackup.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/check_clientbackup.sh b/check_clientbackup.sh
index 6bb5d2e..82a3206 100755
--- a/check_clientbackup.sh
+++ b/check_clientbackup.sh
@@ -63,7 +63,6 @@ else
     echo
     echo ">>> RETURNCODES"
     grep "final.*rc=" $logfile
-    echo
 
     # --- Monitoring Statusline
     if [ -f "$(dirname $0)"/transfer.sh ]; then
@@ -81,7 +80,7 @@ else
     # --- rc=0 must be here
     if [ $iOK -eq 0 ]; then
       echo "ERROR: no OK message was found. Something is messed up :-/"
-      iError=$iError+1
+      iError+=1
     fi
 
     # --- check age
@@ -94,10 +93,11 @@ else
     if [ $iAge2 -gt $iMaxAgeInHours ]; then
       echo "Error: the last backup is older than $iMaxAgeInHours hours"
       sShort="$sShort ERROR: backup is older than $iMaxAgeInHours hours "
-      iError=$iError+1
+      iError+=1
     else
       echo "OK: last backup is younger $iMaxAgeInHours hours"
       sShort="$sShort OK: backup is younger than $iMaxAgeInHours hours "
+      iOK+=1
     fi
 
     # --- changes (incremental backups only) and backup status infos
-- 
GitLab