]> thyrsus.com Git - ssh-installkeys.git/commitdiff
And this version does work.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 14 Dec 2006 04:29:14 +0000 (04:29 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 14 Dec 2006 04:29:14 +0000 (04:29 +0000)
sshauth

diff --git a/sshauth b/sshauth
index 6d71a82493534455af5ecebe76f0ef6fa95eea70..5a8190796516569415993b649ffc6ad93dc08b07 100755 (executable)
--- a/sshauth
+++ b/sshauth
@@ -122,7 +122,7 @@ echo "Local configuration looks correct."
 if [ $delete = yes ]
 then
     ssh ${port} ${verbose} -l ${user} ${host} "rm -fr .ssh"
-    "Keys for $user and $host have been deleted."
+    echo "Keys for $user and $host have been deleted."
     exit 0
 fi
 
@@ -160,7 +160,7 @@ then
        exit 1
     else
        echo \"Creating remote .ssh...\"
-       mkdir \~/.ssh
+       mkdir .ssh
     fi    
 fi
 fixperms .ssh
@@ -181,7 +181,7 @@ EOF
 fi
 "
 
-if [ $check = 'yes' -a $verbose = '-v' ]
+if [ "$check" = 'yes' -a "$verbose" = '-v' ]
 then
     echo "Here is the agent script that would be run:"
     echo "$agent"