diff options
Diffstat (limited to '.config/login.d/10_gpg.sh')
-rw-r--r-- | .config/login.d/10_gpg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/login.d/10_gpg.sh b/.config/login.d/10_gpg.sh index c1c5f82..83e4203 100644 --- a/.config/login.d/10_gpg.sh +++ b/.config/login.d/10_gpg.sh @@ -1,4 +1,4 @@ #!/hint/sh -if [[ -z $GPGKEY ]] && [[ -f "${HOME}/.gnupg/gpg.conf" ]]; then +if [ -z "$GPGKEY" -a -f "${HOME}/.gnupg/gpg.conf" ]; then export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${GNUPG_HOME:-${HOME}/.gnupg}/gpg.conf"` fi |