From a433736669864e51b5b81353d0cdaa2f5856aa44 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 17 Jul 2007 09:30:26 +0000 Subject: * ssh-copy-id checks the exit status of ssh-add -L (thanks, Adeodato Simó; closes: #221675). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/ssh-copy-id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index 1555b5d37..84db5db51 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id @@ -19,7 +19,7 @@ if [ "-i" = "$1" ]; then shift # and this should leave $1 as the target name fi else - if [ x$SSH_AUTH_SOCK != x ] ; then + if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then GET_ID="$GET_ID ssh-add -L" fi fi -- cgit v1.2.3