From 2752805f691c1c18eb1b3b2bb2c5a9f3e722e6fb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 3 Sep 2019 11:05:27 +0200 Subject: gpg-safe-import: allow to import local keys first (useful for --refresh-keys) --- gpg-safe-import | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpg-safe-import b/gpg-safe-import index eca63c2..662cc2c 100755 --- a/gpg-safe-import +++ b/gpg-safe-import @@ -3,6 +3,9 @@ tmp_dir=$(mktemp -d) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT +if ! stty 2>&1 >/dev/null; then + gpg --homedir "${tmp_dir}" --import +fi if ! gpg --homedir "${tmp_dir}" "$@"; then >&2 echo 'gpg exited non-zero' exit 1 -- cgit v1.2.3-70-g09d2