]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update regex to also match version/x.y.z
authorDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 15 May 2019 17:36:01 +0000 (19:36 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 15 May 2019 20:34:38 +0000 (20:34 +0000)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
build/ca-bundle-checker.sh

index 8c8528c23433edd1bc84ffb39a2ca7ffee0fdcd1..4497642fd95a53a89aac7a7835deb75a2a8cd8d2 100755 (executable)
@@ -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