Commit e3fe7134 authored by Johannes Löthberg's avatar Johannes Löthberg Committed by Jan Alexander Steffens (heftig)

makechrootpkg: Use XDG_CONFIG_HOME for makepkg.conf

Implemented the same way as in makepkg.
Signed-off-by: default avatarJohannes Löthberg <johannes@kyriasis.com>
parent 70d3c63b
......@@ -306,7 +306,12 @@ fi
umask 0022
load_vars "$USER_HOME/.makepkg.conf"
XDG_PACMAN_DIR="${XDG_CONFIG_HOME:-$USER_HOME/.config}/pacman"
if [[ -r "$XDG_PACMAN_DIR/makepkg.conf" ]]; then
load_vars "$XDG_PACMAN_DIR/makepkg.conf"
elif [[ -r "$USER_HOME/.makepkg.conf" ]]; then
load_vars "$USER_HOME/.makepkg.conf"
fi
load_vars /etc/makepkg.conf
# Use PKGBUILD directory if these don't exist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment