more pure bash to speed up things
This commit is contained in:
parent
af539ddc21
commit
cffe692e6c
@ -13,12 +13,13 @@ 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
|
||||
echo "open file ${f_ASSET_HIST_FILE}"
|
||||
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]}" ]
|
||||
|
Loading…
Reference in New Issue
Block a user