1
Description: ssh-copy-id: Check exit status of 'ssh-add -L'
2
This fixes behaviour when an agent is running with no identities loaded.
3
Author: Adeodato Simó <asp16@alu.ua.es>
4
Bug-Debian: http://bugs.debian.org/221675
5
Last-Update: 2010-02-27
7
Index: b/contrib/ssh-copy-id
8
===================================================================
9
--- a/contrib/ssh-copy-id
10
+++ b/contrib/ssh-copy-id
12
shift # and this should leave $1 as the target name
15
- if [ x$SSH_AUTH_SOCK != x ] ; then
16
+ if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then
17
GET_ID="$GET_ID ssh-add -L"