From 169071c7ddaf65bc71436159410f7c3f8ca2a69e Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Tue, 23 Apr 2024 20:00:43 +0200 Subject: [PATCH] fixed `${XDG_CONFIG_HOME}` based configuration path --- gpgtool | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpgtool b/gpgtool index f77df6f..3f8c480 100755 --- a/gpgtool +++ b/gpgtool @@ -2,7 +2,7 @@ _dependencies=("echo" "gpg" "ln" "ls" "mktemp" "mkdir" "mv" "rm" "udisksctl") _tempdir=/tmp/gpgtool.tempdir -# Sets up GPGtool. Creates temporary GNUPG home directory, mounts key device if +# Sets up GPGtool. Creates temporary GNUPG home directory, mounts key device if # given, checks for key directory. init () { local dev @@ -146,7 +146,7 @@ list () { fi } -# Opens a key from the key path. Imports into temporary GPG and links the secret +# Opens a key from the key path. Imports into temporary GPG and links the secret # key. open () { _checkinit @@ -169,7 +169,7 @@ open () { done } -# Closes a key from the key path. Deletes the secret key. does not delete the +# Closes a key from the key path. Deletes the secret key. does not delete the # actual key; that will be disposed of in the end anyway. close () { _checkinit @@ -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