From d4e9700f0352d34bb3eab053e2dee6704c02eea6 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 28 Feb 2022 15:14:17 +0100 Subject: [PATCH] fix output of error counter --- check_cronstatus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_cronstatus b/check_cronstatus index dbf99d8..0cb3266 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -157,7 +157,7 @@ done # ---------------------------------------------------------------------- if [ -f $errfile ]; then - iErrJobs=$(wc -l $errfile | cut -f 1) + iErrJobs=$( wc -l $errfile | cut -f 1 -d " " ) echo "ERROR: $iErrJobs of $iJobs jobs [`cat $failfile | sed ':a;N;$!ba;s/\n/, /g'`] have a problem" echo echo "********** Jobs with problems:" -- GitLab