From 17e27891eccbb2bee048eb1293e1911fa4d0ceaf Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 28 Nov 2023 12:10:56 +0100 Subject: [PATCH] fix empty vars --- dabo/analyze.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 194142d..d1acaeb 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -98,7 +98,7 @@ function analyze { 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} - g_num_valid_number "${f_market_performance}" || f_market_performance=0 + g_num_valid_number "${f_market_performance}" 2>/dev/null || f_market_performance=0 #echo "MARKET_PERF=$f_market_performance" #if [ -f "${g_tmp}/open-${tmpfile}" ]