diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-20 15:12:37 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-20 15:12:37 +1300 |
commit | e5495611f271ea6b22deba7c3390da1933d32b45 (patch) | |
tree | c05ee10128854e4c109d11d37b01f3b711bd3d14 /bash | |
parent | Make failed loading due to old Bash explicit (diff) | |
download | dotfiles-e5495611f271ea6b22deba7c3390da1933d32b45.tar.gz dotfiles-e5495611f271ea6b22deba7c3390da1933d32b45.zip |
Use shorthand for null-variable check
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/keychain.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/keychain.bash b/bash/bashrc.d/keychain.bash index 2cb1093a..cae44983 100644 --- a/bash/bashrc.d/keychain.bash +++ b/bash/bashrc.d/keychain.bash @@ -1,5 +1,5 @@ # If TTY/GPG_TTY are set, update them -if [[ -n $TTY || -n $GPG_TTY ]]; then +if [[ $TTY || $GPG_TTY ]]; then TTY=$(tty) GPG_TTY=$TTY fi |