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 [[ "$1" =~ "(-h|--help|help)" ]] && usage && exit 0
# Source config file: # 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 do
[[ -f "${dir}/gpgtool.conf" ]] && source "${dir}/gpgtool.conf" [[ -f "${dir}/gpgtool.conf" ]] && source "${dir}/gpgtool.conf"
done done