From 007261ade551e2e2a6c339435e1d6da55c82722e Mon Sep 17 00:00:00 2001 From: "LevitatingBusinessMan (Rein Fernhout)" Date: Thu, 6 Mar 2025 13:14:44 +0100 Subject: [PATCH] makepkg: do not fail if makepkg.conf.d is empty fixes #230 --- scripts/libmakepkg/util/config.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/libmakepkg/util/config.sh.in b/scripts/libmakepkg/util/config.sh.in index 63f16d66..f7a36ff0 100644 --- a/scripts/libmakepkg/util/config.sh.in +++ b/scripts/libmakepkg/util/config.sh.in @@ -37,7 +37,7 @@ source_makepkg_config() { # Source the config file; fail if it is not found if [[ -r $MAKEPKG_CONF ]]; then 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 source_safe $c done