more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 17:24:50 +01:00
parent a351a66fc6
commit 3aa6867a18

View File

@ -25,7 +25,9 @@ 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]}")
f_asset=$(basename ${f_ASSET_HIST_FILE} | cut -d\. -f1)
unset f_last_lines_array
#f_asset=$(basename ${f_ASSET_HIST_FILE} | cut -d\. -f1)
# basics
get_var_from_line date 1
@ -123,9 +125,6 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
# Coingecko price
get_var_from_line coingecko_price 40
unset f_last_lines_array
}
function get_var_from_line {