diff options
| author | fisherxu <xufei40@huawei.com> | 2019-10-25 20:54:25 +0800 |
|---|---|---|
| committer | fisherxu <xufei40@huawei.com> | 2019-10-28 20:00:24 +0800 |
| commit | 9607b8c7afaee67a9e017dbf90fc2a3fd5bb5308 (patch) | |
| tree | 81e1d8c1f6355c1e2e4b12bf3b6721b3bcdbd0ec /hack/lib/install.sh | |
| parent | Merge pull request #1229 from fisherxu/test-ci (diff) | |
| download | kubeedge-9607b8c7afaee67a9e017dbf90fc2a3fd5bb5308.tar.gz | |
fix local-up
Diffstat (limited to 'hack/lib/install.sh')
| -rw-r--r-- | hack/lib/install.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hack/lib/install.sh b/hack/lib/install.sh index e4076ae3e..d06e378dc 100644 --- a/hack/lib/install.sh +++ b/hack/lib/install.sh @@ -15,8 +15,8 @@ # limitations under the License. # check if kubectl installed -function check_prerequisites { - echo "checking prerequisites" +function check_kubectl { + echo "checking kubectl" which kubectl >/dev/null 2>&1 if [[ $? -ne 0 ]]; then echo "kubectl not installed, exiting." @@ -33,6 +33,10 @@ function check_kind { if [[ $? -ne 0 ]]; then echo "installing kind ." GO111MODULE="on" go get sigs.k8s.io/kind@v0.5.1 + if [[ $? -ne 0 ]]; then + echo "kind installed failed, exiting." + exit 1 + fi export PATH=$PATH:$GOPATH/bin else echo -n "found kind, version: " && kind version |
