#!/usr/bin/expect -f
spawn gpg --pinentry-mode loopback --import {*}$argv
expect -exact "Enter passphrase: "
send -- "$env(REPOSITORY_KEY_PASSPHRASE)\r"
expect eof
