grafana/scripts/build/update_repo/unlock-gpg-key.sh

8 lines
161 B
Bash
Raw Normal View History

#!/usr/bin/env expect
set password [lindex $argv 0]
spawn gpg --detach-sign --armor /tmp/sign-this
expect "Enter passphrase: "
send -- "$password\r"
expect eof