summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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
}