summaryrefslogtreecommitdiff
path: root/hack/lib
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2023-03-23 22:04:34 +0800
committerZhizhen He <hezhizhen.yi@gmail.com>2023-08-25 20:42:43 +0800
commit10e5aeb1ba420da20c9d467e300205eed07055b9 (patch)
tree46b0d1373c85184a55f5e695ac55c020f92b3973 /hack/lib
parentMerge pull request #4939 from wlq1212/e2e/compatibility (diff)
downloadkubeedge-10e5aeb1ba420da20c9d467e300205eed07055b9.tar.gz
fix typo and update comments
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
Diffstat (limited to 'hack/lib')
-rwxr-xr-xhack/lib/install.sh18
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"