summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-01-03 14:34:06 +1100
committerDamien Miller <djm@mindrot.org>2003-01-03 14:34:06 +1100
commit8aff5cbed75279094e2cf701d6eed38dbe4275b8 (patch)
tree9ad4488e165b7175b4194ea30f953948aff34159 /contrib
parent678ee51ff3493f0185dcb23bfb9fb2ba299d89b1 (diff)
- (djm) Bug #461: ssh-copy-id fails with no arguments. Patch from
cjwatson@debian.org
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ssh-copy-id7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id
index 2346761f7..a1ad34a8d 100644
--- a/contrib/ssh-copy-id
+++ b/contrib/ssh-copy-id
@@ -29,7 +29,12 @@ if [ -z "`eval $GET_ID`" -a -r "${ID_FILE}" ] ; then
29fi 29fi
30 30
31if [ -z "`eval $GET_ID`" ]; then 31if [ -z "`eval $GET_ID`" ]; then
32 echo "$0: ERROR: No identities found" 32 echo "$0: ERROR: No identities found" >&2
33 exit 1
34fi
35
36if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
37 echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
33 exit 1 38 exit 1
34fi 39fi
35 40