From b0cd49db419f04fa76608d31c793247f13deded4 Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 12 Nov 2023 18:03:25 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/check_sell_conditions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index a0b5c9a..a38561c 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -7,7 +7,10 @@ function check_sell_conditions { f_SELL="" # get data - 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 f_echo_prefix="SELL ${f_ASSET}@${CURRENCY}:${f_price} - "