diff options
author | djm <djm> | 2010-03-26 00:18:27 +0000 |
---|---|---|
committer | djm <djm> | 2010-03-26 00:18:27 +0000 |
commit | 753426f947a738c0788faf16b38ec3e2d1afeac9 (patch) | |
tree | 209e63f27b75cbc53bb042695e393c0f574c83ff /contrib/ssh-copy-id | |
parent | 043bcb2a8dc2f07ea356053ebcce3e25026ca02c (diff) | |
download | openssh-753426f947a738c0788faf16b38ec3e2d1afeac9.tar.gz |
- (djm) [contrib/ssh-copy-id] Don't blow up when the agent has no keys;
bz#1723 patch from Adeodato Simó via Colin Watson; ok dtucker@
Diffstat (limited to 'contrib/ssh-copy-id')
-rw-r--r-- | contrib/ssh-copy-id | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index df74d25c..65c0a8cd 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 |