tvl-depot/configs/shared/gpg/.gnupg/import.sh
William Carroll 06bf69085e Ensure GPG import.sh script is executable
I must not have tested this before adding it to the repository; otherwise, I
would have found this. Oh well... it worked like a charm when copying the GPG
information from my desktop to my laptop.
2019-03-24 16:12:03 +00:00

13 lines
314 B
Bash
Executable file

#!/usr/bin/env bash
set -e
# Run this script to import all of the information exported by `export.sh`.
# Usage: ./import.sh path/to/directory
gpg --import "$1/public.asc"
gpg --import "$1/secret.asc"
gpg --import-ownertrust "$1/ownertrust.txt"
# Run this at the end to output some verification
gpg --list-keys