diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-02 13:59:10 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-02 13:59:10 +1200 |
commit | 0b7c9900760e6af9e6adb5977a5b2425a399d85f (patch) | |
tree | b2942c2b8497790e879bec334f75c512560567f6 /sh | |
parent | Upgrading submodules (diff) | |
download | dotfiles-0b7c9900760e6af9e6adb5977a5b2425a399d85f.tar.gz dotfiles-0b7c9900760e6af9e6adb5977a5b2425a399d85f.zip |
Restore stderr redirection for command -v
Some older versions of Bash seem to spit out "not found" errors for
command -v on stderr
Diffstat (limited to '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 6ce780fb..08f1a4cc 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=$(which 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 $(keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda) fi |