diff --git a/gaboshlib/g_python.sh b/gaboshlib/g_python.sh index 0f54689..4e5537a 100644 --- a/gaboshlib/g_python.sh +++ b/gaboshlib/g_python.sh @@ -23,7 +23,7 @@ function g_python { local g_python_jobs mapfile -t g_python_jobs < <(jobs -r) - if ! [[ $g_python_jobs =~ python-pipeexec.py ]] + if ! [[ ${g_python_jobs[*]} =~ python-pipeexec.py ]] then g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" unset g_python_running