summaryrefslogtreecommitdiffhomepage
path: root/scripts/go.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/go.sh')
-rwxr-xr-xscripts/go.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/go.sh b/scripts/go.sh
index f24fad04c..0dbfb7747 100755
--- a/scripts/go.sh
+++ b/scripts/go.sh
@@ -29,7 +29,7 @@ git checkout go && git clean -f
go build ./...
# Push, if required.
-if [[ "${KOKORO_GO_PUSH}" == "true" ]]; then
+if [[ -v KOKORO_GO_PUSH ]] && [[ "${KOKORO_GO_PUSH}" == "true" ]]; then
if [[ -v KOKORO_GITHUB_ACCESS_TOKEN ]]; then
git config --global credential.helper cache
git credential approve <<EOF