diff options
author | Adin Scannell <ascannell@google.com> | 2019-09-04 22:24:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 22:24:42 -0700 |
commit | 91518fd553b828ce9f3fa84d91f20a45a8f0c81d (patch) | |
tree | 0ba0c4590a1fa7b8740b2c89a1e7b83ae223038d /scripts | |
parent | fbbb2f7ed6a2f735c8e8d48e8b5264d2057e93ad (diff) |
Fix build when no tags are present
This should correct the continuous build.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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) |