mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #11 from brendandburns/master
Add a error if go executable isn't present on the system.
This commit is contained in:
commit
a70141307a
@ -15,6 +15,12 @@
|
|||||||
# This script sets up a go workspace locally and builds all go components.
|
# This script sets up a go workspace locally and builds all go components.
|
||||||
# You can 'source' this file if you want to set up GOPATH in your local shell.
|
# You can 'source' this file if you want to set up GOPATH in your local shell.
|
||||||
|
|
||||||
|
if [ "$(which go)" == "" ]; then
|
||||||
|
echo "Can't find 'go' in PATH, please fix and retry."
|
||||||
|
echo "See http://golang.org/doc/install for installation instructions."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
pushd $(dirname "${BASH_SOURCE}")/.. >/dev/null
|
pushd $(dirname "${BASH_SOURCE}")/.. >/dev/null
|
||||||
KUBE_REPO_ROOT="${PWD}"
|
KUBE_REPO_ROOT="${PWD}"
|
||||||
KUBE_TARGET="${KUBE_REPO_ROOT}/output/go"
|
KUBE_TARGET="${KUBE_REPO_ROOT}/output/go"
|
||||||
|
Loading…
Reference in New Issue
Block a user