From c35505ef3f48b99a27a03598eb6b1eca21360033 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 17 Mar 2022 12:11:02 +0100
Subject: [PATCH] j_requireBinary - hide error

---
 jobhelper.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jobhelper.sh b/jobhelper.sh
index 1158e2c..d1efb90 100755
--- a/jobhelper.sh
+++ b/jobhelper.sh
@@ -336,7 +336,7 @@ function _j_setLogfile(){
 # ------------------------------------------------------------
 function j_requireBinary(){
   # echo "CHECK binary $1"
-  which "$1" >/dev/null
+  which "$1" >/dev/null 2>&1
   rcself=$?
   if [ $rcself -ne 0 ]; then
     rc=$rc+$rcself
-- 
GitLab