fix empty vars

This commit is contained in:
olli 2023-11-28 11:15:59 +01:00
parent f6994e484c
commit 8443bf59fc

View File

@ -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}]}