From e5a7dff421b7e48e6629f4e89fe1db08bdc4699c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 10 Feb 2014 23:27:39 +1300 Subject: Not sure why I ever set TTY --- bash/bashrc.d/keychain.bash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bash/bashrc.d/keychain.bash') 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 -- cgit v1.2.3