summaryrefslogtreecommitdiff
path: root/.config/login.d/10_gpg.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-20 19:31:17 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-20 19:34:20 -0400
commit2f2900213cc8157590f11dcc7988c1a3bb7dc887 (patch)
tree1894dace4b02568903218cdefb4821bfbd1eda22 /.config/login.d/10_gpg.sh
parent8fd263648f772783767ab6eab0ee25ac8772dcab (diff)
Be careful about shebangs, which shells are used, and what gets executed
Use - #!/hint/bash for bash that gets sourced (non-executable) - #!/hint/sh for sh(1) that gets sourced (non-executable) - #!/bin/sh for sh(1) that gets executed - #!/usr/bin/env bash for bash that gets executed To this end, also - Clean up a couple of related comments - Fix a couple of bash-isms that I noticed in sh(1) files - Fix permissions on a couple of files that get sourced
Diffstat (limited to '.config/login.d/10_gpg.sh')
-rw-r--r--.config/login.d/10_gpg.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/login.d/10_gpg.sh b/.config/login.d/10_gpg.sh
index cf3c88c..c1c5f82 100644
--- a/.config/login.d/10_gpg.sh
+++ b/.config/login.d/10_gpg.sh
@@ -1,3 +1,4 @@
+#!/hint/sh
if [[ -z $GPGKEY ]] && [[ -f "${HOME}/.gnupg/gpg.conf" ]]; then
export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${GNUPG_HOME:-${HOME}/.gnupg}/gpg.conf"`
fi