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 <