From d2dbdea830673cd95566da95ac7a8a630e8477fd Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 12 Nov 2023 17:57:52 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/check_buy_conditions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dabo/functions/check_buy_conditions.sh b/dabo/functions/check_buy_conditions.sh index 83db835..4a53da7 100644 --- a/dabo/functions/check_buy_conditions.sh +++ b/dabo/functions/check_buy_conditions.sh @@ -17,8 +17,10 @@ function check_buy_conditions { fi # get asset vars - #[ -n "${BOT}" ] && - get_vars_from_csv "${f_ASSET_HIST_FILE}" || return 1 + if [ -n "${BOT}" ] + then + get_vars_from_csv "${f_ASSET_HIST_FILE}" || return 1 + fi ### from here: check for defined state to buy f_BUY=""