From ca04c22c7fec844624a38830d3fc96ddfc74c0c9 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 3 Apr 2024 10:04:23 +0200
Subject: [PATCH] add NO_COLOR=1 to supress color and emojis

---
 check_cronstatus | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/check_cronstatus b/check_cronstatus
index 112c94d..b2a7349 100755
--- a/check_cronstatus
+++ b/check_cronstatus
@@ -24,13 +24,14 @@
 # 2022-02-28  v1.5  <axel.hahn@iml.unibe.ch>  fix output of error counter
 # 2022-08-23  v2.0  <axel.hahn@iml.unibe.ch>  simplify it: use cronstatus.sh (it has exitcode >0 on errors now)
 # 2023-07-27  v2.1  <axel.hahn@unibe.ch>      update help page
-# 2020-09-18  v2.2  <axel.hahn@unibe.ch>      replace pipes in systemctl status output
+# 2023-09-18  v2.2  <axel.hahn@unibe.ch>      replace pipes in systemctl status output
+# 2024-04-03  v2.3  <axel.hahn@unibe.ch>      add NO_COLOR=1 to supress color and emojis
 # ======================================================================
 
 
 . $( dirname $0 )/inc_pluginfunctions
 
-export self_APPVERSION=2.2
+export self_APPVERSION=2.3
 
 statusScript=/opt/cronwrapper/cronstatus.sh
 
@@ -85,6 +86,7 @@ if [ ! -x "${statusScript}" ]; then
         ph.status Cronjob status - script not found/ not executable: "${statusScript}"
 else
 
+        export NO_COLOR=1
         out=$( $statusScript )
         rc=$?
 
-- 
GitLab