From 6098253f6f362909c8a9bfc972b3ea72b30428a1 Mon Sep 17 00:00:00 2001 From: "lukeshu@parabola.nu" Date: Wed, 5 Apr 2017 15:35:57 -0400 Subject: Handle makepkg.conf more consistently --- commitpkg.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'commitpkg.in') diff --git a/commitpkg.in b/commitpkg.in index d31f6ba..1f9492c 100644 --- a/commitpkg.in +++ b/commitpkg.in @@ -11,8 +11,10 @@ else fi # Source user-specific makepkg.conf overrides -if [[ -r ~/.makepkg.conf ]]; then - . ~/.makepkg.conf +if [[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/pacman/makepkg.conf" ]]; then + source "${XDG_CONFIG_HOME:-$HOME/.config}/pacman/makepkg.conf" +elif [[ -r "$HOME/.makepkg.conf" ]]; then + source "$HOME/.makepkg.conf" fi cmd=${0##*/} -- cgit v1.2.3-54-g00ecf