From a0dd7fca2c202514d95ecfcd2a815ede497c6a4d Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 18:08: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 994b5cd..7c6fb54 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -17,10 +17,10 @@ function get_vars_from_csv { set -x # read last 4 lines in array if not given - 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 there are not four lines if [ -z "${f_last_lines_array[3]}" ]