diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-06-24 15:42:53 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-06-24 15:42:53 +1200 |
commit | 638825917f94e07684c21f9682383983f1d8b651 (patch) | |
tree | 6187834adcf8c915d3cb5fa5b3523a375ddde386 /sh/profile.d/keychain.sh | |
parent | Sharing keychain(1) profile script (diff) | |
download | dotfiles-638825917f94e07684c21f9682383983f1d8b651.tar.gz dotfiles-638825917f94e07684c21f9682383983f1d8b651.zip |
Discard stderr from command calls
Looks like older versions of Bash emit well-intended error messages if
the command is not found that newer ones don't
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 9d7f5e23..a53edb65 100644 --- a/sh/profile.d/keychain.sh +++ b/sh/profile.d/keychain.sh @@ -1,6 +1,6 @@ # Keychain -command -v ssh-askpass >/dev/null \ +command -v ssh-askpass >/dev/null 2>&1 \ && export SSH_ASKPASS=`which ssh-askpass` -command -v keychain >/dev/null \ +command -v keychain >/dev/null 2>&1 \ && eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda` |