fix empty vars
This commit is contained in:
parent
d87fdf9cbe
commit
eecbe73207
@ -132,9 +132,11 @@ function get_var_from_line {
|
||||
if [ -z "${f_last_line_array[$2]}" ]
|
||||
then
|
||||
g_echo_note "${f_ASSET_HIST_FILE}: Didn't get $1 in position $2"
|
||||
return 1
|
||||
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]}"
|
||||
fi
|
||||
declare -g f_$1="$(echo ${f_last_line_array[$2]})"
|
||||
f_all_vars="$f_all_vars
|
||||
f_$1=$(echo ${f_last_line_array[$2]})"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user