diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-05-15 20:45:58 +0300 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-05-15 20:56:20 +0300 |
commit | 941018cfe5122d4999fb94cfb6a777ad19615452 (patch) | |
tree | c7b30f4501cfb3fb6c499738d89d5e60acec40ef /build/ca-bundle-checker.sh | |
parent | 3e9f9ea06b8abb904412acec01b98d2c00f219cd (diff) |
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>
Diffstat (limited to 'build/ca-bundle-checker.sh')
-rwxr-xr-x | build/ca-bundle-checker.sh | 4 |
1 files changed, 1 insertions, 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 |