more pure bash to speed up things
This commit is contained in:
parent
da052712c3
commit
bc1d511ee8
@ -14,12 +14,12 @@ function get_vars_from_csv {
|
|||||||
fi
|
fi
|
||||||
f_all_vars="f_market_performance=${f_market_performance}"
|
f_all_vars="f_market_performance=${f_market_performance}"
|
||||||
|
|
||||||
|
set -x
|
||||||
# read last 4 lines in array if not given
|
# read last 4 lines in array if not given
|
||||||
#if [ -z "${f_last_lines_array}" ]
|
if [ -z "${f_last_lines_array}" ]
|
||||||
#then
|
then
|
||||||
mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}")
|
mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}")
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# if there are not four lines
|
# if there are not four lines
|
||||||
if [ -z "${f_last_lines_array[3]}" ]
|
if [ -z "${f_last_lines_array[3]}" ]
|
||||||
@ -138,7 +138,7 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
|
|||||||
get_var_from_line ema800 39
|
get_var_from_line ema800 39
|
||||||
|
|
||||||
# Coingecko price
|
# Coingecko price
|
||||||
get_var_from_line coingecko_price 40a
|
get_var_from_line coingecko_price 40
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user