more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 18:03:51 +01:00
parent 94b587e3dd
commit 3cc2d1aa41

View File

@ -19,10 +19,11 @@ function get_vars_from_csv {
mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}")
fi
set -x
# if there are not four lines
[ -z "${f_last_lines_array[3]}" ] && return 1
set -x
# create array of last line fields
#f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}"