mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
fix shellcheck errors
Change-Id: I446cc2fb8b0a8bcf86578562daa5ea41bf8aba16
This commit is contained in:
parent
dfff6e4364
commit
92c76e5363
@ -123,7 +123,7 @@ kube::update::documentation() {
|
|||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
arg1=$1
|
arg1=$1
|
||||||
arg2=$2
|
arg2=$2
|
||||||
doUpdateDocs=$(go run "test/instrumentation/documentation/main.go" --major $arg1 --minor $arg2 -- 1>"${temp_file}")
|
doUpdateDocs=$(go run "test/instrumentation/documentation/main.go" --major "$arg1" --minor "$arg2" -- 1>"${temp_file}")
|
||||||
if ! $doUpdateDocs; then
|
if ! $doUpdateDocs; then
|
||||||
echo "${red}!!! updating documentation has failed! ${reset}" >&2
|
echo "${red}!!! updating documentation has failed! ${reset}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -32,4 +32,4 @@ kube::version::get_version_vars
|
|||||||
# update the documented list of metrics
|
# update the documented list of metrics
|
||||||
kube::update::documentation::list
|
kube::update::documentation::list
|
||||||
# now write the actual documentation file
|
# now write the actual documentation file
|
||||||
kube::update::documentation $KUBE_GIT_MAJOR $KUBE_GIT_MINOR
|
kube::update::documentation "$KUBE_GIT_MAJOR" "$KUBE_GIT_MINOR"
|
||||||
|
Loading…
Reference in New Issue
Block a user