diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 2b28300..7a40dc2 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -10,7 +10,7 @@ function get_vars_from_csv { if [ -z "${f_market_performance}" ] then - f_market_performance="-50" + f_market_performance="0" fi f_all_vars="f_market_performance=${f_market_performance}" @@ -135,7 +135,7 @@ function get_var_from_line { then g_echo_note "${f_ASSET_HIST_FILE}: Didn't get $1 in position $2" declare -g f_$1=0 - f_empty_var=1 + [[ "$1" =~ ^ema800$ ]] || f_empty_var=1 else #declare -g f_$1="$(echo ${f_last_line_array[$2]})" declare -g f_$1="${f_last_line_array[$2]}"