Import PGP public key by string
<p>I want to import a PGP public key into my keychain in a script, but I don't want it to write the contents to a file. Right now my script does this:</p>

<pre><code>curl http://example.com/pgp-public-key -o /tmp/pgp &amp;&amp; gpg --import /tmp/gpg
</code></pre>

<p>How could I write this script so I can just call <code>gpg --import</code> and import the public key as a string? Thank you for your help.</p>