diff options
-rwxr-xr-x | gpg-safe-import | 3 |
1 files changed, 3 insertions, 0 deletions
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 |