fixed ${XDG_CONFIG_HOME}
based configuration path
This commit is contained in:
parent
ff17c6b92c
commit
169071c7dd
1 changed files with 4 additions and 4 deletions
8
gpgtool
8
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
|
||||
|
|
Loading…
Reference in a new issue