fix empty vars

This commit is contained in:
olli 2023-11-27 20:16:33 +01:00
parent aaa663f5b9
commit f4b4f88915

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]})"