fix empty vars

This commit is contained in:
olli 2023-11-28 11:20:48 +01:00
parent 8443bf59fc
commit c6e194fc32

View File

@ -90,6 +90,7 @@ function analyze {
# get time from market_performance # get time from market_performance
local f_time="${f_date%:*}" local f_time="${f_date%:*}"
f_time="${f_time//[^0-9]/}" f_time="${f_time//[^0-9]/}"
f_time="${f_time::-1}"
echo "TIME=$f_time" echo "TIME=$f_time"
# get market_performance from array with time # get market_performance from array with time