From 93cc4678e752fb628820aae429fd4b516dd725a8 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Wed, 28 Aug 2024 17:19:52 +0200 Subject: [PATCH] update typeset for del counters --- check_clientbackup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_clientbackup.sh b/check_clientbackup.sh index 095f0d2..02ce7e1 100755 --- a/check_clientbackup.sh +++ b/check_clientbackup.sh @@ -158,7 +158,8 @@ else # This is faster andd doesn't need comparison of snapshots in output # and works with initial backups too - typeswet -i iModFDelete=0 iModDDelete=0 + typeset -i iModFDelete=0 + typeset -i iModDDelete=0 iModFNew=$( cat $logfile | grep "^Files:.*unmodified" | awk '{sum+=$2;} END {print sum;}' ) iModFChange=$( cat $logfile | grep "^Files:.*unmodified" | awk '{sum+=$4;} END {print sum;}' ) iModFNone=$( cat $logfile | grep "^Files:.*unmodified" | awk '{sum+=$6;} END {print sum;}' ) -- GitLab