diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-10-20 17:33:02 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-11-09 13:46:51 +1000 |
commit | 03aa44a3ecab8ede51d3a6a780017b59babe2965 (patch) | |
tree | 62c009140aebd89b74fbd14dfb39ecdbe22ae263 | |
parent | f77933ea1e45638d518206c839315d3feece2c01 (diff) | |
download | pacman-03aa44a3ecab8ede51d3a6a780017b59babe2965.tar.xz |
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>
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 86f8a773..90486767 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 } |