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 ]] if ! [[ ${g_python_jobs[*]} =~ python-pipeexec.py ]]
then then
g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)"
rm ${g_tmp}/${g_rnd}/python-error
unset g_python_running unset g_python_running
return 1 return 1
fi fi
@ -43,7 +44,7 @@ function g_python {
then then
until [ -n "$g_python_result" ] until [ -n "$g_python_result" ]
do 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 [ -s "${g_tmp}/${g_rnd}/python-error" ] && break
done done
unset g_python_waitforoutput unset g_python_waitforoutput
@ -54,6 +55,7 @@ function g_python {
if [ -s "${g_tmp}/${g_rnd}/python-error" ] if [ -s "${g_tmp}/${g_rnd}/python-error" ]
then then
g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)"
rm ${g_tmp}/${g_rnd}/python-error
return 1 return 1
fi fi