From 5028f317fd6c60135e561e3a8da5cfa93dce6709 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 18:06:36 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index bb23819..14d015a 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -23,7 +23,11 @@ function get_vars_from_csv { set -x # if there are not four lines - [ -z "${f_last_lines_array[3]}" ] && return 1 + if [ -z "${f_last_lines_array[3]}" ] + then + set +x + return 1 + fi # create array of last line fields #f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}"