From b0a73ce5597ab8ce5282096cffc1a84f8e1337ef Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 17:17:55 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 2215843..d692e73 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -7,13 +7,14 @@ function get_vars_from_csv { return 1 fi +set -x + + if [ -z "${f_last_lines}" ] then mapfile -t f_last_lines <<< $(tail -n4 "${f_ASSET_HIST_FILE}") fi -set -x - if [ -z "${f_market_performance}" ] then f_market_performance="-50"