scripts/build.sh: fix kokoro failure "KOKORO_BUILD_NIGHTLY: unbound variable"

PiperOrigin-RevId: 269690988
This commit is contained in:
Andrei Vagin
2019-09-17 17:26:01 -07:00
committed by gVisor bot
parent 60fe8719e1
commit b63d56b0b4
+1 -1
View File
@@ -47,7 +47,7 @@ install() {
# current date. If the current commit happens to correpond to a tag, then we
# will also move everything into a directory named after the given tag.
if [[ -v KOKORO_ARTIFACTS_DIR ]]; then
if [[ "${KOKORO_BUILD_NIGHTLY}" == "true" ]]; then
if [[ "${KOKORO_BUILD_NIGHTLY:-false}" == "true" ]]; then
# The "latest" directory and current date.
stamp="$(date -Idate)"
install "${KOKORO_ARTIFACTS_DIR}/nightly/latest" \