summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2015-12-07 00:39:22 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-12-12 17:23:09 -0500
commitb29a4ce1e8256987e195c710a76bb529644ed46f (patch)
treefd87927149e596f13f9cd0ee68406fe474864acd
parentd69957eb815987ab1f96b7b8ef43d3d5df69d1e4 (diff)
tidy (generic)
-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