remove reported error file

This commit is contained in:
olli 2024-03-26 18:05:51 +01:00
parent 654123516d
commit bc1a7b8d42

View File

@ -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