about summary refs log tree commit diff
path: root/users/wpcarro/configs/.gnupg/import.sh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-12-12T19·40-0800
committerwpcarro <wpcarro@gmail.com>2022-12-12T19·43+0000
commit5037443c7a5e4b01d285348b1b5f429152dad72d (patch)
treebb0e2f34ce0cf178ce1cf884cf71b44792d717ee /users/wpcarro/configs/.gnupg/import.sh
parentb6cae74f136759b73d05e93622ce0a3b7902c0bb (diff)
chore(wpcarro/gpg): Delete import/export gpg scripts r/5412
These are encoded in configs/default.nix anyhow.

Change-Id: Ie1181f91ee7a65b43ce75d8af9ecc2c1b49dbf73
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7577
Autosubmit: wpcarro <wpcarro@gmail.com>
Reviewed-by: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/configs/.gnupg/import.sh')
-rwxr-xr-xusers/wpcarro/configs/.gnupg/import.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/users/wpcarro/configs/.gnupg/import.sh b/users/wpcarro/configs/.gnupg/import.sh
deleted file mode 100755
index bb449267ce5e..000000000000
--- a/users/wpcarro/configs/.gnupg/import.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-
-# Run this script to import all of the information exported by `export.sh`.
-# Usage: ./import.sh path/to/export.zip
-
-if [ -z "${1+x}" ]; then
-  echo "You must specify the path to export.zip. Exiting..."
-  exit 1
-fi
-
-destination="$(mktemp -d)"
-
-function cleanup() {
-  rm -rf "${destination}"
-}
-trap cleanup EXIT
-
-unzip "${1}" -d "${destination}" >/dev/null
-
-gpg --import "${destination}/public.asc"
-gpg --import "${destination}/secret.asc"
-gpg --import-ownertrust "${destination}/ownertrust.txt"
-
-# Run this at the end to output some verification
-gpg --list-keys
-gpg --list-secret-keys