From bc1a7b8d42383a190b2103d08176ba936b10c440 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 26 Mar 2024 18:05:51 +0100 Subject: [PATCH] remove reported error file --- gaboshlib/g_python.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gaboshlib/g_python.sh b/gaboshlib/g_python.sh index 854d22a..8cb099c 100644 --- a/gaboshlib/g_python.sh +++ b/gaboshlib/g_python.sh @@ -35,6 +35,7 @@ function g_python { if ! [[ ${g_python_jobs[*]} =~ python-pipeexec.py ]] then g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" + rm ${g_tmp}/${g_rnd}/python-error unset g_python_running return 1 fi @@ -43,7 +44,7 @@ function g_python { then until [ -n "$g_python_result" ] do - read -t 0.3 g_python_result <${g_tmp}/${g_rnd}/python-out + read -t 0.2 g_python_result <${g_tmp}/${g_rnd}/python-out [ -s "${g_tmp}/${g_rnd}/python-error" ] && break done unset g_python_waitforoutput @@ -54,6 +55,7 @@ function g_python { if [ -s "${g_tmp}/${g_rnd}/python-error" ] then g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" + rm ${g_tmp}/${g_rnd}/python-error return 1 fi