script/release.sh: always select the GPG key by it's ID
authorKarolin Seeger <kseeger@samba.org>
Thu, 21 Jan 2021 12:03:44 +0000 (13:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Jan 2021 12:57:30 +0000 (13:57 +0100)
Signed-off-by: Karolin Seeger <kseeger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
script/release.sh

index fd7e973641654caab267823a572f534dc8832c7a..45e9206005c0846f201d35e111d507f44a2f8c33 100755 (executable)
@@ -316,7 +316,7 @@ create_release() {
 
        echo "Signing ${tarname} => ${tarname}.asc"
        rm -f "${tarname}.asc"
-       gpg -u "${GPG_USER}" --detach-sign --armor ${tarname} || {
+       gpg --default-key "${GPG_KEYID}" --detach-sign --armor ${tarname} || {
                return 1
        }
        test -f "${tarname}.asc" || {
@@ -362,7 +362,7 @@ patch_release() {
        echo "Signing ${patchfile} => ${patchfile}.asc"
        rm -f "${patchfile}.asc"
        CLEANUP_FILES="${CLEANUP_FILES} ${patchfile}.asc"
-       gpg -u "${GPG_USER}" --detach-sign --armor ${patchfile} || {
+       gpg --default-key "${GPG_KEYID}" --detach-sign --armor ${patchfile} || {
                return 1
        }
        test -f "${patchfile}.asc" || {