more pure bash to speed up things

This commit is contained in:
olli 2023-11-15 17:13:22 +01:00
parent 839680820e
commit 411b4ee940

View File

@ -127,10 +127,10 @@ function check_sell_conditions_strategy {
then
[ -z "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2)
[ -n "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f6)
if grep -q "buy.${f_strategy_name}.conf" ${f_TRADE_HIST_FILE}
then
. "${f_strategy}" || return 0
fi
#if grep -q "buy.${f_strategy_name}.conf" ${f_TRADE_HIST_FILE}
#then
# . "${f_strategy}" || return 0
#fi
else
g_echo_note "${f_echo_prefix}Strategy file not found"
return 1