fix empty vars

This commit is contained in:
olli 2023-11-28 11:22:06 +01:00
parent c6e194fc32
commit 7677c76f5d

View File

@ -62,6 +62,7 @@ function analyze {
do do
f_market_perf_date=${f_market_perf_line%,*} f_market_perf_date=${f_market_perf_line%,*}
f_market_perf_date=${f_market_perf_date//[^0-9]/} f_market_perf_date=${f_market_perf_date//[^0-9]/}
f_market_perf_date=${f_market_perf_date::-1}
f_market_perf=${f_market_perf_line#*,} f_market_perf=${f_market_perf_line#*,}
f_market_performace_array[${f_market_perf_date}]=${f_market_perf} f_market_performace_array[${f_market_perf_date}]=${f_market_perf}
done done