]> andersk Git - openssh.git/blobdiff - contrib/ssh-copy-id
- (djm) Bug #461: ssh-copy-id fails with no arguments. Patch from
[openssh.git] / contrib / ssh-copy-id
index 2346761f7af0e6ed84922fe921d596a1b5f1aae5..a1ad34a8d421a817175e7588003ef2cd51399ff3 100644 (file)
@@ -29,7 +29,12 @@ if [ -z "`eval $GET_ID`" -a -r "${ID_FILE}" ] ; then
 fi
 
 if [ -z "`eval $GET_ID`" ]; then
-  echo "$0: ERROR: No identities found"
+  echo "$0: ERROR: No identities found" >&2
+  exit 1
+fi
+
+if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
+  echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
   exit 1
 fi
 
This page took 0.06549 seconds and 4 git commands to generate.