From 5d531ae3faa495667f70841fdcf28e8905a2e342 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 18:10:28 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index a43e144..65d6d69 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -14,7 +14,6 @@ function get_vars_from_csv { fi f_all_vars="f_market_performance=${f_market_performance}" - set -x # read last 4 lines in array if not given if [ -z "${f_last_lines_array}" ] then @@ -23,8 +22,8 @@ function get_vars_from_csv { # if there are not four lines if [ -z "${f_last_lines_array[3]}" ] - then - set +x + then + unset f_last_lines_array return 1 fi