grafana/scripts/build/update_repo/unlock-gpg-key.sh
2019-01-09 11:42:55 +01:00

8 lines
161 B
Bash
Executable File

#!/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