diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-27 13:25:33 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-27 13:25:33 +1200 |
commit | 2ec1927db78c34c40f103971bd2975d10f57c170 (patch) | |
tree | b35c54610e4a17f8e7bbd27f4fc7d2e390db1aa7 | |
parent | Use -n test and temp var for working tree test (diff) | |
download | dotfiles-2ec1927db78c34c40f103971bd2975d10f57c170.tar.gz dotfiles-2ec1927db78c34c40f103971bd2975d10f57c170.zip |
Use command -p to find tty(1)
-rw-r--r-- | sh/shrc.d/keychain.sh | 2 |
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 |