aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-20 15:12:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-20 15:12:37 +1300
commite5495611f271ea6b22deba7c3390da1933d32b45 (patch)
treec05ee10128854e4c109d11d37b01f3b711bd3d14 /bash
parentMake failed loading due to old Bash explicit (diff)
downloaddotfiles-e5495611f271ea6b22deba7c3390da1933d32b45.tar.gz
dotfiles-e5495611f271ea6b22deba7c3390da1933d32b45.zip
Use shorthand for null-variable check
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/keychain.bash2
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