From 3cc2d1aa41ff820156b64f3731547ae0e0e1a1f6 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 18:03:51 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 92533eb..a8c5363 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -19,10 +19,11 @@ function get_vars_from_csv { mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}") fi + + set -x # if there are not four lines [ -z "${f_last_lines_array[3]}" ] && return 1 - set -x # create array of last line fields #f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}"