summaryrefslogtreecommitdiff
path: root/hack/lib/golang.sh
diff options
context:
space:
mode:
authorzyt312074545 <zyt312074545@hotmail.com>2021-01-29 11:33:46 +0000
committerzyt312074545 <zyt312074545@hotmail.com>2021-01-29 11:34:07 +0000
commit3e7495b33991006dff4a2e786c8226f432fd3978 (patch)
tree4db2bdb64767f2189bca5d4ca9c83c0331023c52 /hack/lib/golang.sh
parentMerge pull request #2535 from fisherxu/remove-unused (diff)
downloadkubeedge-3e7495b33991006dff4a2e786c8226f432fd3978.tar.gz
scripts: modify wrong word
modify the wrong word in golang.sh Fixes # Signed-off-by: zyt312074545 <zyt312074545@hotmail.com>
Diffstat (limited to 'hack/lib/golang.sh')
-rwxr-xr-xhack/lib/golang.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
index 0ea01490a..9cf3faa47 100755
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -137,7 +137,7 @@ kubeedge::check::env() {
# check other env
- # check lenth of errors
+ # check length of errors
if [[ ${#errors[@]} -ne 0 ]] ; then
local error
for error in "${errors[@]}"; do
@@ -176,16 +176,16 @@ kubeedge::golang::get_all_targets() {
echo ${targets[@]}
}
-kubeedge::golang::get_all_binares() {
- local -a binares
+kubeedge::golang::get_all_binaries() {
+ local -a binaries
for bt in "${ALL_BINARIES_AND_TARGETS[@]}" ; do
- binares+=("${bt%%:*}")
+ binaries+=("${bt%%:*}")
done
- echo ${binares[@]}
+ echo ${binaries[@]}
}
IFS=" " read -ra KUBEEDGE_ALL_TARGETS <<< "$(kubeedge::golang::get_all_targets)"
-IFS=" " read -ra KUBEEDGE_ALL_BINARIES<<< "$(kubeedge::golang::get_all_binares)"
+IFS=" " read -ra KUBEEDGE_ALL_BINARIES<<< "$(kubeedge::golang::get_all_binaries)"
kubeedge::golang::build_binaries() {
kubeedge::check::env