From 94b587e3dd7e6b0afcd66e8cc0e41f4a71334e77 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 18:03:26 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 14ce5a0..92533eb 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -1,7 +1,5 @@ function get_vars_from_csv { - set -x - f_ASSET_HIST_FILE="$1" if ! [ -s "${f_ASSET_HIST_FILE}" ] then @@ -24,6 +22,8 @@ function get_vars_from_csv { # 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}" f_last_line="${f_last_lines_array[3]},${f_market_performance}"