From e8c2a77f53d65fed90af9fc9c62380fa9c81f858 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 24 Sep 2009 13:53:17 -0400 Subject: [PATCH] avoid noisy warning message when ssh-askpass not available --- src/share/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/common b/src/share/common index 87a30be..4aa3f7c 100644 --- a/src/share/common +++ b/src/share/common @@ -310,7 +310,7 @@ passphrase_prompt() { local fifo="$2" local PASS - if [ "$DISPLAY" ] && type "${SSH_ASKPASS:-ssh-askpass}" >/dev/null; then + if [ "$DISPLAY" ] && type "${SSH_ASKPASS:-ssh-askpass}" >/dev/null 2>/dev/null; then printf 'Launching "%s"\n' "${SSH_ASKPASS:-ssh-askpass}" | log info printf '(with prompt "%s")\n' "$prompt" | log debug "${SSH_ASKPASS:-ssh-askpass}" "$prompt" > "$fifo" -- 2.25.1