Skip to content

Instantly share code, notes, and snippets.

@roidelapluie
Created January 29, 2016 14:48
Show Gist options
  • Save roidelapluie/bd7d2f7302fb5f8112d1 to your computer and use it in GitHub Desktop.
Save roidelapluie/bd7d2f7302fb5f8112d1 to your computer and use it in GitHub Desktop.
#!/usr/bin/expect
set package_0 [ lindex $argv 0 ]
send_user "calling rpmsign --addsign $package_0\nargv: $argv"
spawn rpmsign "--addsign" $package_0
expect "Enter pass phrase: "
send {GPGPASSWORD}
send \r
expect eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment