summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-20 23:33:02 +0200
committerAllan McRae <allan@archlinux.org>2014-11-09 04:46:51 +0100
commit03aa44a3ecab8ede51d3a6a780017b59babe2965 (patch)
tree62c009140aebd89b74fbd14dfb39ecdbe22ae263
parentf77933ea1e45638d518206c839315d3feece2c01 (diff)
downloadpacman-03aa44a3ecab8ede51d3a6a780017b59babe2965.tar.gz
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.in2
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
}