From b2bf0ad683d65f861daaf81f8a30914ebcaed2fc Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 20 Dec 2024 14:22:48 +0100 Subject: [PATCH] fix: array reference --- dabo/functions/get_symbols_ticker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dabo/functions/get_symbols_ticker.sh b/dabo/functions/get_symbols_ticker.sh index 2a31b9e..99bec2b 100644 --- a/dabo/functions/get_symbols_ticker.sh +++ b/dabo/functions/get_symbols_ticker.sh @@ -87,6 +87,7 @@ function get_symbols_ticker { local f_ticker f_symbol f_price declare -Ag f_tickers_array declare -Ag v + declare -Ag vr for f_ticker in "${f_tickers_array_ref[@]}" do f_symbol=${f_ticker%%:*} @@ -95,6 +96,7 @@ function get_symbols_ticker { f_price=${f_ticker/*,/} g_num_exponential2normal $f_price && f_price=$g_num_exponential2normal_result f_tickers_array[$f_symbol]=$f_price + vr[${f_symbol}_price]=$f_price v[${f_symbol}_price]=$f_price done fi