Skip to content

Instantly share code, notes, and snippets.

@devurandom
Created November 10, 2019 12:05
Show Gist options
  • Save devurandom/07be8988ba896b61d1b6f20790ab8b6c to your computer and use it in GitHub Desktop.
Save devurandom/07be8988ba896b61d1b6f20790ab8b6c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -u
set -e
response="$(gpg --export "$@" | curl --silent --show-error --upload-file - https://keys.openpgp.org)"
echo "${response}"
url="$(echo "${response}" | tail -n+2)"
exec xdg-open "${url}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment