about summary refs log tree commit diff
path: root/configs/shared/gpg/.gnupg/import.sh
blob: 9fb9be64f06010f6192cc6448c8c5c93ef6d7191 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -e

# Run this script to import all of the information exported by `export.sh`.
# Usage: ./export.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