From aac84b963dcaee5293711b3ebd85834353ca59ce Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 27 Nov 2023 22:44:03 +0100 Subject: [PATCH] fix empty vars --- dabo/functions/get_vars_from_csv.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 594b947..2cf2179 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -8,11 +8,13 @@ function get_vars_from_csv { return 1 fi + set -x if [ -z "${f_market_performance}" ] then f_market_performance="0" 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}" ]