Skip to content

Instantly share code, notes, and snippets.

@nblair
Created October 29, 2015 12:45
Show Gist options
  • Save nblair/0ab78266b5226c81f6be to your computer and use it in GitHub Desktop.
Save nblair/0ab78266b5226c81f6be to your computer and use it in GitHub Desktop.
Simple script one can use to interact with gpg-agent; useful to cache your passphrase before running Maven Release that includes the maven-gpg-plugin
#!/bin/sh
echo 'this file exists solely to interact with gpg-agent, it and the .asc file can be deleted' > gpg-agent-warmup.txt
gpg2 -ab gpg-agent-warmup.txt
rm -f gpg-agent-warmup.txt gpg-agent-warmup.txt.asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment