From 8443bf59fc69ffbf92dcffad17d4f6052c665ea1 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 28 Nov 2023 11:15:59 +0100 Subject: [PATCH] fix empty vars --- dabo/analyze.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index b67d5d2..8f5ecbe 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -71,7 +71,7 @@ function analyze { local f_chart_array mapfile -t f_lines <<<$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,') local f_line -# for line in "${f_lines[@]}" + for f_line in "${f_lines[@]}" do f_sell_score="" @@ -90,6 +90,7 @@ function analyze { # get time from market_performance local f_time="${f_date%:*}" f_time="${f_time//[^0-9]/}" + echo "TIME=$f_time" # get market_performance from array with time f_market_performance=${f_market_performace_array[${f_time}]}