From 15a25b9eb79bb1e4f14ce4484fce5c62354429a7 Mon Sep 17 00:00:00 2001 From: Mikhail Bautin Date: Fri, 18 Oct 2019 02:54:01 +0000 Subject: [PATCH] Fix for unset github token --- build-and-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-and-release.sh b/build-and-release.sh index 55cc63f..64b477f 100755 --- a/build-and-release.sh +++ b/build-and-release.sh @@ -36,8 +36,8 @@ while [[ $# -gt 0 ]]; do shift done -if [[ ${GITHUB_TOKEN:-} == "(yugabyte.githubToken)" ]]; then - log "GITHUB_TOKEN has its default value (yugabyte.githubToken), un-setting" +if [[ ${GITHUB_TOKEN:-} == *yugabyte.githubToken* ]]; then + log "GITHUB_TOKEN contains the string yugabyte.githubToken, considering it unset." GITHUB_TOKEN="" fi export GITHUB_TOKEN