summaryrefslogtreecommitdiff
path: root/commitpkg.in
diff options
context:
space:
mode:
authorlukeshu@parabola.nu <lukeshu@parabola.nu>2017-04-05 15:35:57 -0400
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-04-05 22:17:51 +0200
commit6098253f6f362909c8a9bfc972b3ea72b30428a1 (patch)
treee6b627ff47f34730ac23b42493efae35574400c8 /commitpkg.in
parentc1a056c9a8f42e1a8e1f66b265b7ccbd1a2cb1ee (diff)
downloaddevtools32-6098253f6f362909c8a9bfc972b3ea72b30428a1.tar.xz
Handle makepkg.conf more consistently
Diffstat (limited to 'commitpkg.in')
-rw-r--r--commitpkg.in6
1 files changed, 4 insertions, 2 deletions
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##*/}