[X2Go-Commits] [buildscripts] 01/01: bin/rpmsign-unattended: only send input if matching output was actually received.

git-admin at x2go.org git-admin at x2go.org
Mon Aug 7 09:59:33 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 1e4ab9f4a2ace7ec8d6993347c5ea297f22d103a
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Aug 7 09:56:12 2017 +0200

    bin/rpmsign-unattended: only send input if matching output was actually received.
---
 bin/rpmsign-unattended | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/rpmsign-unattended b/bin/rpmsign-unattended
index a84d1f0..de8b15e 100755
--- a/bin/rpmsign-unattended
+++ b/bin/rpmsign-unattended
@@ -1,6 +1,7 @@
 #!/usr/bin/expect --
 
 spawn rpmsign {*}$argv
-expect -exact "Enter pass phrase: "
-send -- "\r"
+expect {
+  -ex "Enter pass phrase: " send -- "\r"
+}
 expect eof

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list