From 5d52653e6c2948604e081bea7e0b89e02f6b80a4 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 9 Feb 2024 22:48:56 +0100 Subject: [PATCH] unset old array to get new data --- dabo/functions/get_vars_from_csv.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 56fb74c..50993f9 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -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}")