X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fgpg-verify-git-signature.sh;h=20bb7456d51fd59d01f365e746b5f1fc54da9478;hb=eafdcafcbe25dbad05e5117aca20bf6ea048ac44;hp=b26359e6ab8402aa458439176499ced5c8249027;hpb=851b0b6d0cfe84e986548fd596a9b2f18413fefd;p=releng%2Fglobal-jjb.git diff --git a/shell/gpg-verify-git-signature.sh b/shell/gpg-verify-git-signature.sh index b26359e6..20bb7456 100644 --- a/shell/gpg-verify-git-signature.sh +++ b/shell/gpg-verify-git-signature.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @License EPL-1.0 +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # @@ -10,10 +10,10 @@ ############################################################################## echo "---> gpg-verify-git-signature.sh" -if git log --show-signature -1 | egrep -q 'gpg: Signature made.*key ID'; then - echo "Git commit is GPG signed." +if git log --show-signature -1 | grep -E -q 'gpg: Signature made.*key ID'; then + echo "Git commit is GPG signed." else - echo "WARNING: GPG signature missing for the commit." + echo "WARNING: GPG signature missing for the commit." fi # Do NOT fail the job for unsigned commits