dkbuild: maj messages debug

This commit is contained in:
Jephté Clain 2022-07-22 19:12:10 +04:00
parent 1699cc5f44
commit d6e78b9665
1 changed files with 3 additions and 1 deletions

View File

@ -1025,14 +1025,16 @@ function ensure_projdir() {
[ -f "$DKBUILD" ] || die "$(ppath "$DKBUILD"): fichier de build introuvable"
if [ "$CONFIG" == none ]; then
:
edebug "no default config used"
elif [ -n "$CONFIG" ]; then
setx CONFIG=abspath "$CONFIG"
edebug "using config $CONFIG"
else
local config
for config in ~/.dkbuild.env /etc/dkbuild.env; do
if [ -f "$config" ]; then
CONFIG="$config"
edebug "using default config $CONFIG"
break
fi
done