fix empty vars

This commit is contained in:
olli 2023-11-27 18:10:05 +01:00
parent eecbe73207
commit aaa663f5b9

View File

@ -134,8 +134,8 @@ function get_var_from_line {
g_echo_note "${f_ASSET_HIST_FILE}: Didn't get $1 in position $2"
declare -g f_$1=0
else
#declare -g f_$1="$(echo ${f_last_line_array[$2]})"
declare -g f_$1=${f_last_line_array[$2]}"
declare -g f_$1="$(echo ${f_last_line_array[$2]})"
#declare -g f_$1=${f_last_line_array[$2]}"
fi
f_all_vars="$f_all_vars
f_$1=$(echo ${f_last_line_array[$2]})"