From db4a5e3c31714248fc122b15f782730b6f0865ff Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 17:26:03 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 8900b56..d44c5fb 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -7,10 +7,10 @@ function get_vars_from_csv { return 1 fi - #if [ -z "${f_last_lines_array}" ] - #then + if [ -z "${f_last_lines_array}" ] + then mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}") - #fi + fi if [ -z "${f_market_performance}" ] then