diff options
author | Colin Watson <cjwatson@debian.org> | 2007-07-17 09:30:26 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-07-17 09:30:26 +0000 |
commit | a433736669864e51b5b81353d0cdaa2f5856aa44 (patch) | |
tree | 3728e3bc03f96e9a413069718a1d47a140e225d2 /contrib | |
parent | 99867a32b593ec7fd57fd51ca5b0ca6030aa8425 (diff) |
* ssh-copy-id checks the exit status of ssh-add -L (thanks, Adeodato Simó;
closes: #221675).
Diffstat (limited to 'contrib')
-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 1555b5d37..84db5db51 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id | |||
@@ -19,7 +19,7 @@ if [ "-i" = "$1" ]; then | |||
19 | shift # and this should leave $1 as the target name | 19 | shift # and this should leave $1 as the target name |
20 | fi | 20 | fi |
21 | else | 21 | else |
22 | if [ x$SSH_AUTH_SOCK != x ] ; then | 22 | if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then |
23 | GET_ID="$GET_ID ssh-add -L" | 23 | GET_ID="$GET_ID ssh-add -L" |
24 | fi | 24 | fi |
25 | fi | 25 | fi |