fix shellcheck errors

Change-Id: I446cc2fb8b0a8bcf86578562daa5ea41bf8aba16
This commit is contained in:
Han Kang 2022-11-07 12:44:40 -08:00
parent dfff6e4364
commit 92c76e5363
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ kube::update::documentation() {
temp_file=$(mktemp)
arg1=$1
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
echo "${red}!!! updating documentation has failed! ${reset}" >&2
exit 1

View File

@ -32,4 +32,4 @@ kube::version::get_version_vars
# update the documented list of metrics
kube::update::documentation::list
# now write the actual documentation file
kube::update::documentation $KUBE_GIT_MAJOR $KUBE_GIT_MINOR
kube::update::documentation "$KUBE_GIT_MAJOR" "$KUBE_GIT_MINOR"