properly clean up temporary keyring with seckey2sshagent.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 5 Aug 2008 16:25:59 +0000 (12:25 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 5 Aug 2008 16:25:59 +0000 (12:25 -0400)
src/seckey2sshagent

index deab489f6a33cb3410bf60649bfa1bf658ef9be8..8f3d54d97b3770e6d6c624def3b63347ca94e7e2 100755 (executable)
@@ -17,7 +17,7 @@
 
 cleanup() {
     echo -n "removing temp gpg home... " 1>&2
-    rm -rf $FOO
+    rm -rf "$TMPPRIVATE"
     echo "done." 1>&2
 }
 
@@ -44,7 +44,6 @@ if you're really sure.  Answer yes, because this is only relevant to
 the temporary keyring.  Then, do:
 
  save
- exit
 
 At this point, your key will be added to your running ssh-agent with
 the alias 'monkeysphere-key' and seckey2sshagent should terminate.