From 83e3b16e04ad23e00ae9a4ba9c19616d10f08040 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 27 Nov 2023 22:56:33 +0100 Subject: [PATCH] fix empty vars --- dabo/analyze.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index f95fc3a..ef72ebd 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -88,11 +88,12 @@ function analyze { local f_time="${f_date%:*}" f_time="${f_time//[^0-9]/}" - # get markel_performance from array with time + # get market_performance from array with time f_market_performance=${f_market_performace_array[${f_time}]} [ -z "${f_market_performance}" ] && f_market_performance=${f_market_performance_before} f_market_performance_before=${f_market_performance} - echo "MARKET_PERF=$f_market_performance" + g_num_valid_number || unset f_market_performance + #echo "MARKET_PERF=$f_market_performance" # get vars get_vars_from_csv ${g_tmp}/${tmpfile} || continue