mirror of
https://github.com/golang/go
synced 2024-11-25 07:07:57 -07:00
build: clean.bash to check that GOOS and GOARCH are set
R=rsc CC=golang-dev https://golang.org/cl/1843046
This commit is contained in:
parent
d1e7cffe6c
commit
d34174cfb5
@ -9,6 +9,14 @@ if [ -z "$GOROOT" ] ; then
|
||||
echo '$GOROOT not set'
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$GOOS" ] ; then
|
||||
echo '$GOOS not set'
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$GOARCH" ] ; then
|
||||
echo '$GOARCH not set'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
GOBIN="${GOBIN:-$HOME/bin}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user