fixed ${XDG_CONFIG_HOME} based configuration path

This commit is contained in:
alterNERDtive 2024-04-23 20:00:43 +02:00
parent ff17c6b92c
commit 169071c7dd
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1

View file

@ -300,7 +300,7 @@ done
[[ "$1" =~ "(-h|--help|help)" ]] && usage && exit 0
# Source config file:
for dir in "$(dirname $0)" "${HOME}/.config/gpgtool" "${XDG_CONFIG_HOME}"
for dir in "$(dirname $0)" "${HOME}/.config/gpgtool" "${XDG_CONFIG_HOME}/gpgtool"
do
[[ -f "${dir}/gpgtool.conf" ]] && source "${dir}/gpgtool.conf"
done