diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 14:35:16 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 14:35:16 +1200 |
commit | 4f9541f1f5e193e252a890062cd01970f2204619 (patch) | |
tree | df091379910710735c2f8db961ecbcc28cd3dd25 /sh/profile.d/keychain.sh | |
parent | Update submodules (diff) | |
download | dotfiles-4f9541f1f5e193e252a890062cd01970f2204619.tar.gz dotfiles-4f9541f1f5e193e252a890062cd01970f2204619.zip |
Suppress stderr from command -v checks
Now I remember--old Bash prints failure messages to stderr for this
call. That'll be why I was suppressing both streams initially.
Diffstat (limited to 'sh/profile.d/keychain.sh')
-rw-r--r-- | sh/profile.d/keychain.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh index a9725bec..55306ad4 100644 --- a/sh/profile.d/keychain.sh +++ b/sh/profile.d/keychain.sh @@ -1,11 +1,11 @@ # ssh-askpass setup -if command -v ssh-askpass >/dev/null ; then +if command -v ssh-askpass >/dev/null 2>&1 ; then SSH_ASKPASS=$(command -v ssh-askpass) export SSH_ASKPASS fi # keychain setup -if command -v keychain >/dev/null ; then +if command -v keychain >/dev/null 2>&1 ; then eval "$(TERM=${TERM:-ansi} keychain \ --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda)" |