From a2c90f47e34aaecb54872a1e91665e2a6fa22b11 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 27 Sep 2024 12:23:21 +0200 Subject: [PATCH] fix --- dabo/functions/get_ohlcv-candle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/functions/get_ohlcv-candle.sh b/dabo/functions/get_ohlcv-candle.sh index 9a72067..57f573e 100644 --- a/dabo/functions/get_ohlcv-candle.sh +++ b/dabo/functions/get_ohlcv-candle.sh @@ -365,7 +365,7 @@ function convert_ohlcv_1h_to_1d { local f_input_file="$1" local f_output_file="$2" - local f_latestdate f_nextdate f_mytimezone f_line f_date f_open f_high f_low f_close f_volume f_inday + local f_latestdate f_nextdate f_mytimezone f_line f_date f_open f_high f_low f_close f_volume f_inday i if ! [ -s "$f_input_file" ] then @@ -416,7 +416,7 @@ function convert_ohlcv_1h_to_1d { echo $f_nextdate f_nextdate=$(date -d "$f_nextdate +1day" "+%Y-%m-%d") i=$((i++)) - if [ i -gt 10 ] + if [ $i -gt 10 ] then g_echo_warn "${FUNCNAME} $@: no nextdate found after >10 iterations" return 1