xbps-src: disable file expansion in show_pkg_var

This commit is contained in:
Duncaen 2025-05-28 00:45:04 +02:00
parent ab87177d3c
commit 9323056ac2
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -52,9 +52,11 @@ show_pkg_var() {
_sep=" "
fi
if [ -n "$_always_split" ] || [[ "$_value" =~ $'\n' ]]; then
set -f
for i in ${_value}; do
[ -n "$i" ] && echo "${_label}:${_sep}${i}"
done
set +f
else
echo "${_label}:${_sep}${_value}"
fi