From 0384404c6ea288d97af5f11bfa4e4dbe0de930e3 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 22 Apr 2024 19:16:50 +0200 Subject: [PATCH] unset old result --- gaboshlib/g_python.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gaboshlib/g_python.sh b/gaboshlib/g_python.sh index a83e5d5..0085313 100644 --- a/gaboshlib/g_python.sh +++ b/gaboshlib/g_python.sh @@ -6,7 +6,7 @@ function g_python { local g_python_error=${g_python_tmp}/python-error local g_python_jobs mapfile -t g_python_jobs < <(jobs -r) - + unset g_python_result # Use python in backround for multiple python commands running much faster #if [ -z "${g_python_running}" ] @@ -39,7 +39,6 @@ function g_python { # Check for output if [ -s ${g_python_out} ] then - unset g_python_result mapfile -t g_python_result <${g_python_out} if [[ ${g_python_result[-1]} == DONE ]] then