From 941018cfe5122d4999fb94cfb6a777ad19615452 Mon Sep 17 00:00:00 2001
From: Daniel Kesselberg <mail@danielkesselberg.de>
Date: Wed, 15 May 2019 19:45:58 +0200
Subject: [PATCH] Use DRONE_SOURCE_BRANCH instead of DRONE_COMMIT_REFSPEC

Looks like DRONE_COMMIT_REFSPEC is not available anymore on Drone 1.x

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
---
 build/ca-bundle-checker.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/build/ca-bundle-checker.sh b/build/ca-bundle-checker.sh
index 4497642fd95..4d11abc2c74 100755
--- a/build/ca-bundle-checker.sh
+++ b/build/ca-bundle-checker.sh
@@ -1,8 +1,6 @@
 #!/usr/bin/env bash
 
-printenv
-
-if [[ -n ${DRONE_COMMIT_REFSPEC} &&  ! ${DRONE_COMMIT_REFSPEC} =~ version(\/noid)?\/([0-9.]+) ]]; then
+if [[ -n ${DRONE_SOURCE_BRANCH} &&  ! ${DRONE_SOURCE_BRANCH} =~ version(\/noid)?\/([0-9.]+) ]]; then
     echo "Skip CA bundle check"
     exit 0
 fi
-- 
GitLab