aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/keychain.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/keychain.bash')
-rw-r--r--bash/bashrc.d/keychain.bash5
1 files changed, 2 insertions, 3 deletions
diff --git a/bash/bashrc.d/keychain.bash b/bash/bashrc.d/keychain.bash
index cae44983..92b3e020 100644
--- a/bash/bashrc.d/keychain.bash
+++ b/bash/bashrc.d/keychain.bash
@@ -1,6 +1,5 @@
# If TTY/GPG_TTY are set, update them
-if [[ $TTY || $GPG_TTY ]]; then
- TTY=$(tty)
- GPG_TTY=$TTY
+if [[ $GPG_TTY ]]; then
+ GPG_TTY=$(tty)
fi