From c8c1fd60b023203e1447dfd9f5d8ad29614ed9d6 Mon Sep 17 00:00:00 2001 From: Andy Pitcher Date: Tue, 24 Oct 2023 14:20:42 -0400 Subject: [PATCH] Update gpg import with --batch and change expect prompt --- policy/centos9/scripts/sign | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/policy/centos9/scripts/sign b/policy/centos9/scripts/sign index dc97319..c6a2dc6 100755 --- a/policy/centos9/scripts/sign +++ b/policy/centos9/scripts/sign @@ -19,14 +19,14 @@ case "$RPM_CHANNEL" in echo "TESTING_PRIVATE_KEY not defined, failing rpm sign" exit 1 fi - gpg --import - <<<"$TESTING_PRIVATE_KEY" + gpg --batch --import - <<< "$TESTING_PRIVATE_KEY" ;; "production") if ! grep "BEGIN PGP PRIVATE KEY BLOCK" <<<"$PRIVATE_KEY"; then echo "PRIVATE_KEY not defined, failing rpm sign" exit 1 fi - gpg --import - <<<"$PRIVATE_KEY" + gpg --batch --import - <<< "$PRIVATE_KEY" ;; *) echo "RPM_CHANNEL $RPM_CHANNEL does not match one of: [testing, production]" @@ -37,7 +37,7 @@ esac expect <