commit: a1060b6f27a547b28a5c603768b43cfa84137ec0 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sat Jul 20 12:03:28 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Sat Jul 20 12:03:28 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=a1060b6f
gen_funcs.sh: is_valid_triplet(): Relax regex Bug: https://bugs.gentoo.org/690262 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> gen_funcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_funcs.sh b/gen_funcs.sh index 31e4a6c..67b5d21 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -221,7 +221,7 @@ is_valid_triplet() { local triplet=${1} local is_triplet=no - if [[ "${triplet}" =~ ^[a-zA-Z0-9]{2,}-[a-zA-Z0-9]{2,}-[a-zA-Z0-9]{2,} ]] + if [[ "${triplet}" =~ ^[^-]{2,}-[^-]{2,}-.{2,} ]] then is_triplet=yes fi