summaryrefslogtreecommitdiff
path: root/.config/login.d
diff options
context:
space:
mode:
Diffstat (limited to '.config/login.d')
-rw-r--r--.config/login.d/10_gpg.sh2
-rw-r--r--.config/login.d/90_dot-runtime.sh1
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