From c7d3556b72aed69595217be18cee39a45d9afd31 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Wed, 15 May 2019 19:36:01 +0200 Subject: [PATCH] Update regex to also match version/x.y.z Signed-off-by: Daniel Kesselberg --- build/ca-bundle-checker.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/ca-bundle-checker.sh b/build/ca-bundle-checker.sh index 8c8528c234..4497642fd9 100755 --- a/build/ca-bundle-checker.sh +++ b/build/ca-bundle-checker.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash -echo -if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version\/noid\/.+ ]]; then +printenv + +if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version(\/noid)?\/([0-9.]+) ]]; then echo "Skip CA bundle check" exit 0 fi