avoid noisy warning message when ssh-askpass not available
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 24 Sep 2009 17:53:17 +0000 (13:53 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 24 Sep 2009 17:53:17 +0000 (13:53 -0400)
src/share/common

index 87a30be2926865296bac39535da38d92d9711b5f..4aa3f7ce14857b60390a2c2da02bf1cabddaeee7 100644 (file)
@@ -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"