fix empty vars
This commit is contained in:
parent
6817ef8e1d
commit
590fd9d0ec
@ -63,7 +63,6 @@ function analyze {
|
||||
f_market_perf_date=${f_market_perf_line%,*}
|
||||
f_market_perf_date=${f_market_perf_date//[^0-9]/}
|
||||
[ -z "$f_market_perf_date" ] && continue
|
||||
echo "DTAE=$f_market_perf_date"
|
||||
f_market_perf_date=${f_market_perf_date::-1}
|
||||
f_market_perf=${f_market_perf_line#*,}
|
||||
f_market_performace_array[${f_market_perf_date}]=${f_market_perf}
|
||||
@ -94,7 +93,6 @@ function analyze {
|
||||
local f_time="${f_date%:*}"
|
||||
f_time="${f_time//[^0-9]/}"
|
||||
f_time="${f_time::-1}"
|
||||
echo "TIME=$f_time"
|
||||
|
||||
# get market_performance from array with time
|
||||
f_market_performance=${f_market_performace_array[${f_time}]}
|
||||
|
Loading…
Reference in New Issue
Block a user