diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 1cff9f6..7520995 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -83,8 +83,6 @@ function analyze { [ -z "${f_last_lines_array[3]}" ] && continue echo "$line" >>${g_tmp}/${tmpfile} - # get vars - get_vars_from_csv ${g_tmp}/${tmpfile} || continue # get time from market_performance local f_time="${f_date%:*}" @@ -96,6 +94,9 @@ function analyze { f_market_performance_before=${f_market_performance} #echo "MARKET_PERF=$f_market_performance" + # get vars + get_vars_from_csv ${g_tmp}/${tmpfile} || continue + #if [ -f "${g_tmp}/open-${tmpfile}" ] if [ -n "${f_open_trade}" ] then diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 2cf2179..594b947 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -8,13 +8,11 @@ function get_vars_from_csv { return 1 fi - set -x if [ -z "${f_market_performance}" ] then f_market_performance="0" fi f_all_vars="f_market_performance=${f_market_performance}" - set +x # read last 4 lines in array if not given if [ -z "${f_last_lines_array}" ]