diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2015-12-07 00:39:22 -0500 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2015-12-07 00:39:22 -0500 |
commit | 35eb6d2112ef2219e6d7766296465aedfc2b7439 (patch) | |
tree | a2c3874c7aafad3c198707d608c146f8f9a85ca6 | |
parent | e2fc5e9435bbf064484f02f327edf7c704acec8b (diff) |
tidy (generic)
-rw-r--r-- | .config/login.d/10_gpg.sh | 2 | ||||
-rw-r--r-- | .config/login.d/90_dot-runtime.sh | 1 |
2 files changed, 2 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 diff --git a/.config/login.d/90_dot-runtime.sh b/.config/login.d/90_dot-runtime.sh index cb0b7f2..9aefa59 100644 --- a/.config/login.d/90_dot-runtime.sh +++ b/.config/login.d/90_dot-runtime.sh @@ -1,3 +1,4 @@ +#!/hint/sh # This is really only needed for ssh ControlPath; as I don't have a # way to communicate XDG_RUNTIME_DIR to it otherwise. mkdir -p -- ~/.runtime |