From 91518fd553b828ce9f3fa84d91f20a45a8f0c81d Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Wed, 4 Sep 2019 22:24:42 -0700 Subject: Fix build when no tags are present This should correct the continuous build. --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 293d87093..ee2de3b94 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -49,7 +49,7 @@ if [[ -v KOKORO_ARTIFACTS_DIR ]]; then # Is it a tagged release? Build that instead. In that case, we also try to # update the base release directory, in case this is an update. Finally, we # update the "release" directory, which has the last released version. - tag="$(git describe --exact-match --tags HEAD)" + tag="$(git describe --exact-match --tags HEAD || true)" if ! [[ -z "${tag}" ]]; then install "${KOKORO_ARTIFACTS_DIR}/${tag}" base=$(echo "${tag}" | cut -d'.' -f1) -- cgit v1.2.3