mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Fix typos in pre-commit
This commit is contained in:
parent
7e88b0ef0e
commit
57df873216
@ -29,7 +29,7 @@ if [[ "${#files[@]}" -ne 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
echo "${reset}"
|
echo "${reset}"
|
||||||
|
|
||||||
echo -ne "Check if Godep licesnses are up to date..."
|
echo -ne "Check if Godep licenses are up to date..."
|
||||||
if ! OUT=$("hack/verify-godep-licenses.sh" 2>&1); then
|
if ! OUT=$("hack/verify-godep-licenses.sh" 2>&1); then
|
||||||
echo
|
echo
|
||||||
echo "${red}${OUT}"
|
echo "${red}${OUT}"
|
||||||
@ -54,7 +54,7 @@ done
|
|||||||
if [[ "${#files_need_gofmt[@]}" -ne 0 ]]; then
|
if [[ "${#files_need_gofmt[@]}" -ne 0 ]]; then
|
||||||
echo "${red}ERROR!"
|
echo "${red}ERROR!"
|
||||||
echo "Some files have not been gofmt'd. To fix these errors, "
|
echo "Some files have not been gofmt'd. To fix these errors, "
|
||||||
echo "cut and paste the following:"
|
echo "copy and paste the following:"
|
||||||
echo " gofmt -s -w ${files_need_gofmt[@]}"
|
echo " gofmt -s -w ${files_need_gofmt[@]}"
|
||||||
exit_code=1
|
exit_code=1
|
||||||
else
|
else
|
||||||
@ -88,7 +88,7 @@ echo -ne "Checking for problems with flag names... "
|
|||||||
invalid_flag_lines=$(hack/verify-flags-underscore.py "${files[@]}")
|
invalid_flag_lines=$(hack/verify-flags-underscore.py "${files[@]}")
|
||||||
if [[ "${invalid_flag_lines:-}" != "" ]]; then
|
if [[ "${invalid_flag_lines:-}" != "" ]]; then
|
||||||
echo "${red}ERROR!"
|
echo "${red}ERROR!"
|
||||||
echo "There appear to be problems with the following"
|
echo "There appear to be problems with the following:"
|
||||||
for line in "${invalid_flag_lines[@]}"; do
|
for line in "${invalid_flag_lines[@]}"; do
|
||||||
echo " ${line}"
|
echo " ${line}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user