unset old array to get new data

This commit is contained in:
olli 2024-02-09 22:48:56 +01:00
parent e4d8905e11
commit 5d52653e6c

View File

@ -15,6 +15,7 @@ function get_vars_from_csv {
f_all_vars="f_market_performance=${f_market_performance}"
# read last 4 lines in array if not given
unset f_last_lines_array
if [ -z "${f_last_lines_array}" ]
then
mapfile -t f_last_lines_array < <(tail -n4 "${f_ASSET_HIST_FILE}")