makepkg: do not fail if makepkg.conf.d is empty

fixes #230
This commit is contained in:
LevitatingBusinessMan (Rein Fernhout) 2025-03-06 13:14:44 +01:00 committed by Allan McRae
parent bbe3f614b2
commit 007261ade5

View file

@ -37,7 +37,7 @@ source_makepkg_config() {
# Source the config file; fail if it is not found # Source the config file; fail if it is not found
if [[ -r $MAKEPKG_CONF ]]; then if [[ -r $MAKEPKG_CONF ]]; then
source_safe "$MAKEPKG_CONF" source_safe "$MAKEPKG_CONF"
if [[ -d "$MAKEPKG_CONF.d" ]]; then if [[ -d "$MAKEPKG_CONF.d" ]] && compgen -G "$MAKEPKG_CONF.d"/'*.conf' > /dev/null; then
for c in "$MAKEPKG_CONF.d"/*.conf; do for c in "$MAKEPKG_CONF.d"/*.conf; do
source_safe $c source_safe $c
done done