diff options
| author | Zhizhen He <hezhizhen.yi@gmail.com> | 2023-03-23 22:04:34 +0800 |
|---|---|---|
| committer | Zhizhen He <hezhizhen.yi@gmail.com> | 2023-08-25 20:42:43 +0800 |
| commit | 10e5aeb1ba420da20c9d467e300205eed07055b9 (patch) | |
| tree | 46b0d1373c85184a55f5e695ac55c020f92b3973 /hack/lib | |
| parent | Merge pull request #4939 from wlq1212/e2e/compatibility (diff) | |
| download | kubeedge-10e5aeb1ba420da20c9d467e300205eed07055b9.tar.gz | |
fix typo and update comments
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
Diffstat (limited to 'hack/lib')
| -rwxr-xr-x | hack/lib/install.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hack/lib/install.sh b/hack/lib/install.sh index 6d777ebd9..2940f65e2 100755 --- a/hack/lib/install.sh +++ b/hack/lib/install.sh @@ -38,7 +38,7 @@ function check_kind { exit 1 fi - # avoid modifing go.sum and go.mod when installing the kind + # avoid modifying go.sum and go.mod when installing the kind git checkout -- go.mod go.sum export PATH=$PATH:$GOPATH/bin @@ -69,16 +69,16 @@ function check_golangci-lint { function install_golangci-lint { echo "installing golangci-lint ." - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.51.1 - if [[ $? -ne 0 ]]; then - echo "golangci-lint installed failed, exiting." - exit 1 - fi + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.51.1 + if [[ $? -ne 0 ]]; then + echo "golangci-lint installed failed, exiting." + exit 1 + fi - export PATH=$PATH:$GOPATH/bin + export PATH=$PATH:$GOPATH/bin } -verify_containerd_installed(){ +verify_containerd_installed() { # verify the containerd installed command -v containerd >/dev/null || { echo "must install the containerd first" @@ -86,7 +86,7 @@ verify_containerd_installed(){ } } -verify_docker_installed(){ +verify_docker_installed() { # verify the docker installed command -v docker >/dev/null || { echo "must install the docker first" |
