From 914bcb311c843a527417726d1b040b2e8af7ea9d Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Tue, 22 Mar 2022 13:46:47 +0100 Subject: [PATCH] fix counter, write to tty --- inc_pluginfunctions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc_pluginfunctions b/inc_pluginfunctions index 64be7fb..ffdb366 100644 --- a/inc_pluginfunctions +++ b/inc_pluginfunctions @@ -471,12 +471,12 @@ function ph.execIfReady(){ _rc=$? if [ $_rc -ne 0 ]; then _iCount=$_iCount+1 - if [ $_iCount -gt $_iMaxTry ]; then + if [ $_iCount -ge $_iMaxTry ]; then rm -f $tmpfile ph.setStatus "unknown" ( ph.status "Aborting because command failed $_iMaxTry times: [$_cmd2run] - see $0" - ) > /dev/stdout + ) > /dev/tty rm -f $tmpfile ph.exit fi -- GitLab