From c7d37e41b2cd07898f6b90cd77d53a9d4ccb1ac8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 9 Feb 2010 13:45:38 -0800 Subject: [PATCH] dashboard: auto-update builder.sh. avoid possibility of busy loop pounding on dashboard. R=agl1 CC=golang-dev https://golang.org/cl/206051 --- misc/dashboard/buildcron.sh | 3 +++ misc/dashboard/builder.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/misc/dashboard/buildcron.sh b/misc/dashboard/buildcron.sh index 42a12b2e79..5f43007964 100644 --- a/misc/dashboard/buildcron.sh +++ b/misc/dashboard/buildcron.sh @@ -41,6 +41,9 @@ fi if [ ! -d $GOROOT ]; then mkdir -p $GOROOT hg clone https://go.googlecode.com/hg/ $GOROOT +else + cd $GOROOT + hg pull -u || exit 1 fi mkdir -p $GOROOT/bin diff --git a/misc/dashboard/builder.sh b/misc/dashboard/builder.sh index fb2e6defb5..b302acec28 100644 --- a/misc/dashboard/builder.sh +++ b/misc/dashboard/builder.sh @@ -74,4 +74,5 @@ while true ; do fi fi cd ../.. || fatal "Cannot cd up" + sleep 10 done -- 2.50.0