Continues on empty lines from repoquery

This commit is contained in:
Brett C 2021-06-22 18:35:39 +10:00
parent e118e7a0fd
commit 078779f2e6

View File

@ -265,6 +265,9 @@ repoinfo () {
fi fi
declare -gA repoinfo_results=() declare -gA repoinfo_results=()
while IFS=" :" read -r name val; do while IFS=" :" read -r name val; do
if [[ -z $name ]] && [[ -z $val ]]; then
continue
fi
if [[ -z $name ]]; then if [[ -z $name ]]; then
repoinfo_results[$prev]+=" $val" repoinfo_results[$prev]+=" $val"
else else