makepkg: ignore empty global attributes in extraction

This bug isn't currently exposed by any of the existing codepaths, but
an upcoming patch to introduce SRCINFO files to makepkg will expose
this.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2014-10-20 17:33:02 -04:00 committed by Allan McRae
parent f77933ea1e
commit 03aa44a3ec
1 changed files with 1 additions and 1 deletions

View File

@ -2385,7 +2385,7 @@ extract_global_var() {
array_build ref "$attr"
[[ ${ref[@]} ]] && array_build "$outputvar" "$attr"
else
[[ -v $attr ]] && printf -v "$outputvar" %s "${!attr}"
[[ ${!attr} ]] && printf -v "$outputvar" %s "${!attr}"
fi
}