From nobody Wed Oct 13 06:50:01 2021 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 73E6818035EE for ; Wed, 13 Oct 2021 06:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTjp12vK6z3gxh; Wed, 13 Oct 2021 06:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 438B123392; Wed, 13 Oct 2021 06:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19D6o1bh058153; Wed, 13 Oct 2021 06:50:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19D6o1Ld058139; Wed, 13 Oct 2021 06:50:01 GMT (envelope-from git) Date: Wed, 13 Oct 2021 06:50:01 GMT Message-Id: <202110130650.19D6o1Ld058139@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: d0b8158d66 - main - checkkey: Make the script work for logins starting with digits List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d0b8158d6634f602ca864eea102d674f83d2531c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/doc/commit/?id=d0b8158d6634f602ca864eea102d674f83d2531c commit d0b8158d6634f602ca864eea102d674f83d2531c Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-10-13 06:48:30 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-10-13 06:49:59 +0000 checkkey: Make the script work for logins starting with digits Differential Revision: https://reviews.freebsd.org/D16548 --- documentation/tools/checkkey.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/tools/checkkey.sh b/documentation/tools/checkkey.sh index 0806139725..deb7cbd640 100755 --- a/documentation/tools/checkkey.sh +++ b/documentation/tools/checkkey.sh @@ -88,10 +88,10 @@ if echo "${id}" | egrep -q '^[0-9A-F]{16}$'; then elif echo "${id}" | egrep -q '^[0-9A-F]{8}$'; then id_type="keyid" set -- "${id}" $@ -elif echo "${id}" | egrep -iq '^[a-z][-0-9a-z_]*@([-0-9a-z]+\.)[-0-9a-z]+$'; then +elif echo "${id}" | egrep -iq '^[0-9a-z][-0-9a-z_]*@([-0-9a-z]+\.)[-0-9a-z]+$'; then id_type="email" email="${id}" -elif echo "${id}" | egrep -iq '^[a-z][-0-9a-z_]*$'; then +elif echo "${id}" | egrep -iq '^[0-9a-z][-0-9a-z_]*$'; then id_type="login" login="${id}" email="${id}@FreeBSD.org"