diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 14d015a..994b5cd 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -13,15 +13,15 @@ function get_vars_from_csv { f_market_performance="-50" 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 mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}") fi - set -x - # if there are not four lines if [ -z "${f_last_lines_array[3]}" ] then