aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-27 13:25:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-27 13:25:33 +1200
commit2ec1927db78c34c40f103971bd2975d10f57c170 (patch)
treeb35c54610e4a17f8e7bbd27f4fc7d2e390db1aa7 /sh
parentUse -n test and temp var for working tree test (diff)
downloaddotfiles-2ec1927db78c34c40f103971bd2975d10f57c170.tar.gz
dotfiles-2ec1927db78c34c40f103971bd2975d10f57c170.zip
Use command -p to find tty(1)
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/keychain.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/keychain.sh b/sh/shrc.d/keychain.sh
index e625d704..d9aaf63f 100644
--- a/sh/shrc.d/keychain.sh
+++ b/sh/shrc.d/keychain.sh
@@ -1,4 +1,4 @@
# If GPG_AGENT_INFO is set, update GPG_TTY for clean use of pinentry(1) etc
[ -n "$GPG_AGENT_INFO" ] || return
-GPG_TTY=$(tty)
+GPG_TTY=$(command -p tty)
export GPG_TTY