Skip to content
Snippets Groups Projects
Commit 914bcb31 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix counter, write to tty

parent 67c18bcb
No related branches found
No related tags found
No related merge requests found
...@@ -471,12 +471,12 @@ function ph.execIfReady(){ ...@@ -471,12 +471,12 @@ function ph.execIfReady(){
_rc=$? _rc=$?
if [ $_rc -ne 0 ]; then if [ $_rc -ne 0 ]; then
_iCount=$_iCount+1 _iCount=$_iCount+1
if [ $_iCount -gt $_iMaxTry ]; then if [ $_iCount -ge $_iMaxTry ]; then
rm -f $tmpfile rm -f $tmpfile
ph.setStatus "unknown" ph.setStatus "unknown"
( (
ph.status "Aborting because command failed $_iMaxTry times: [$_cmd2run] - see $0" ph.status "Aborting because command failed $_iMaxTry times: [$_cmd2run] - see $0"
) > /dev/stdout ) > /dev/tty
rm -f $tmpfile rm -f $tmpfile
ph.exit ph.exit
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment