Fix: Rename tox job and remove pre-commit
[releng/global-jjb.git] / shell / gpg-verify-git-signature.sh
index b26359e..20bb745 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+# SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2016 The Linux Foundation and others.
 #
 ##############################################################################
 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