more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 18:05:11 +01:00
parent b7e10bc365
commit be21204f2b

View File

@ -1,6 +1,5 @@
function get_vars_from_csv {
set -x
f_ASSET_HIST_FILE="$1"
if ! [ -s "${f_ASSET_HIST_FILE}" ]
@ -15,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
@ -33,6 +31,8 @@ function get_vars_from_csv {
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines_array[1]}")
readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_lines_array[0]}")
set -x
# remove f_last_lines_array
unset f_last_lines_array