]> thyrsus.com Git - ssh-installkeys.git/commitdiff
Make the -h option work.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 14 Dec 2006 04:24:17 +0000 (04:24 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 14 Dec 2006 04:24:17 +0000 (04:24 +0000)
sshauth

diff --git a/sshauth b/sshauth
index e392614341bf040e8538c1c7cef5d106f5f58fc5..6d71a82493534455af5ecebe76f0ef6fa95eea70 100755 (executable)
--- a/sshauth
+++ b/sshauth
@@ -1,5 +1,5 @@
 #!/bin/bash
-DOC= <<EOF
+DOC="\
 This script tries to export ssh public keys to a specified site.  It will
 walk you through generating key pairs if it doesn't find any to export.
 It handles all the fiddly details like making sure local and remote
@@ -13,8 +13,7 @@ Options:
 -v        Report all commands sent to host and output received.
 -p <port> Connect on a particular port in place of 22
 
-Author: Eric S. Raymond <esr@thyrsus.com>
-EOF
+Author: Eric S. Raymond <esr@thyrsus.com>"
 
 check=no
 verbose=""
@@ -28,7 +27,7 @@ do
     c) check=yes ;;
     d) delete=yes ;;
     p) port="-p $OPTARG" ;;
-    h) print $DOC; exit 0;;
+    h) echo "$DOC"; exit 0;;
     v) verbose=-v quiet="" ;;
     esac
 done