background job fix

This commit is contained in:
olli 2024-06-04 15:12:29 +02:00
parent 29156fbac6
commit c0fe474c19

View File

@ -18,7 +18,7 @@ function f_ccxt {
local g_ccxt_jobs local g_ccxt_jobs
mapfile -t g_ccxt_jobs < <(jobs -r) mapfile -t g_ccxt_jobs < <(jobs -r)
# Initialize ccxt in python if not initialized # Initialize ccxt in python if not initialized
[[ ${g_ccxt_jobs[*]} != *python-pipeexec.py* ]] || unset f_ccxt_initialized [[ ${g_ccxt_jobs[*]} =~ *python-pipeexec.py* ]] || unset f_ccxt_initialized
if [ -z "$f_ccxt_initialized" ] if [ -z "$f_ccxt_initialized" ]
then then
g_python 'import os' || return 1 g_python 'import os' || return 1