From 638825917f94e07684c21f9682383983f1d8b651 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 24 Jun 2013 15:42:53 +1200 Subject: 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 --- sh/profile.d/keychain.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh/profile.d') 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` -- cgit v1.2.3