From cb4fab548bafda4f2a556f713308a54f18ffd46e Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: May 26 2023 13:32:33 +0000 Subject: Fixed syntax for gnupg2-2.3 (el9) Signed-off-by: Fabian Arrotin --- diff --git a/docs/buildsys/koji-cbs-sigs.md b/docs/buildsys/koji-cbs-sigs.md index 6715946..1f6d0dd 100644 --- a/docs/buildsys/koji-cbs-sigs.md +++ b/docs/buildsys/koji-cbs-sigs.md @@ -145,7 +145,7 @@ As we can see the key was created but we have first to unlock it now (in gpg-age ``` # Unlocking the key -key_id=$(gpg --list-keys | egrep -B 1 "${sig_name}"|head -n 1|awk '{print $2}'|cut -f 2 -d '/') +key_id=$(gpg --list-keys | egrep -B 1 "${sig_name}"|head -n1|tr -d [:blank:]) test_file=$(mktemp) timeout 30 gpg --batch --sign -b --use-agent --local-user ${key_id}! ${test_file} && rm ${test_file} && echo "Signing OK" || echo "Signing failed" ```