diff --git a/dabo/functions/get_macd_indicator.sh b/dabo/functions/get_macd_indicator.sh index a9f029a..bbf6210 100644 --- a/dabo/functions/get_macd_indicator.sh +++ b/dabo/functions/get_macd_indicator.sh @@ -21,7 +21,7 @@ function get_macd_indicator { local f_lastline=$(tail -n1 "$f_hist_file" | grep ^2) # force min 15min 2 last lines - local f_second_lastline=$(tail -n2"$f_hist_file" | head -n1 | grep ^2) + local f_second_lastline=$(tail -n2 "$f_hist_file" | head -n1 | grep ^2) # Try to get current MACD values local f_macd_lastprice=$(echo "$f_lastline" | cut -d, -f2) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 48ad240..4392960 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -1,6 +1,6 @@ function get_vars_from_csv { - local f_ASSET_HIST_FILE="$1" + f_ASSET_HIST_FILE="$1" if ! [ -s "${f_ASSET_HIST_FILE}" ] then g_echo_warn "${f_ASSET_HIST_FILE} does not exist or is empty" @@ -39,7 +39,7 @@ function get_vars_from_csv { function get_var_from_line { if [ -z "${f_last_line_array[$2]}" ] then - g_echo_note "Didn't get $1 in position $2" + g_echo_note "${f_ASSET_HIST_FILE}: Didn't get $1 in position $2" return 1 fi declare -g f_$1="$(echo ${f_last_line_array[$2]})"