From 694c1b3ea434a56ba2046f5aeabf56f0fa6f7f2c Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Wed, 23 Mar 2022 11:29:45 +0100 Subject: [PATCH] remove ascii colors --- check_clientbackup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check_clientbackup b/check_clientbackup index 55834a3..125d3c1 100755 --- a/check_clientbackup +++ b/check_clientbackup @@ -27,7 +27,10 @@ fi result=$( $sChecker ) rc=$? -# result=${result//\[[0-9][0-9]*m/ } + +# remove ascii colors +result=${result//\[[0-9]m/ } +result=${result//\[[0-9][0-9]m/ } if [ $rc -eq 0 ]; then ph.setStatus "ok" -- GitLab