From 81ff6458caa477b0ac4dc13e502b5746828039de Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 28 Feb 2022 15:13:11 +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 e2f579f..dbf99d8 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -157,7 +157,7 @@ done # ---------------------------------------------------------------------- if [ -f $errfile ]; then - iErrJobs=$(wc -l $errfile) + iErrJobs=$(wc -l $errfile | cut -f 1) echo "ERROR: $iErrJobs of $iJobs jobs [`cat $failfile | sed ':a;N;$!ba;s/\n/, /g'`] have a problem" echo echo "********** Jobs with problems:" -- GitLab