mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
13 lines
333 B
Plaintext
Executable File
13 lines
333 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
# wrapper to make rpm --sign be non-interactive
|
|
# passwd is 1st arg, file to sign is 2nd
|
|
#send_user «$argv0 [lrange $argv 0 2]\n"
|
|
#set files [lrange $argv 1 $argc ]
|
|
|
|
set password [lindex $argv 0]
|
|
set files [lindex $argv 1]
|
|
spawn rpm --addsign $files
|
|
expect "Enter pass phrase:"
|
|
send -- "$password\r"
|
|
expect eof
|