]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding rpm-addsign-wrapper.expect
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Dec 2021 16:19:29 +0000 (17:19 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Dec 2021 16:19:29 +0000 (17:19 +0100)
rpm-addsign-wrapper.expect [new file with mode: 0755]

diff --git a/rpm-addsign-wrapper.expect b/rpm-addsign-wrapper.expect
new file mode 100755 (executable)
index 0000000..51261eb
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/expect
+set f [lindex $argv 0]
+set p [lindex $argv 1]
+spawn rpm --addsign $f
+expect "Enter pass phrase:"
+send -- "$p\r"
+expect eof
+