about summary refs log blame commit diff
path: root/users/wpcarro/configs/.gnupg/import.sh
blob: e698aa3d2bd20e11b2623e5c07dc9b6686fe5048 (plain) (tree)
1
2
3
4
5
6




                                                                           
                                      






                                                 
#!/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