diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-05 16:46:15 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-05 16:46:15 -0700 |
commit | 487c6f03448dadeb46c7ee79150a094743dee05b (patch) | |
tree | 5a07f809ca56bdd1e7f923fb77e0033f3b2223a7 | |
parent | eb074a61f22fb488b8518c8b6a0f4d9325758203 (diff) | |
parent | 91518fd553b828ce9f3fa84d91f20a45a8f0c81d (diff) |
Merge pull request #809 from google:amscanne-patch-1
PiperOrigin-RevId: 267484802
-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) |