From 92c76e536355cd1a1d2b7d7843fa674ce5d01876 Mon Sep 17 00:00:00 2001 From: Han Kang Date: Mon, 7 Nov 2022 12:44:40 -0800 Subject: [PATCH] fix shellcheck errors Change-Id: I446cc2fb8b0a8bcf86578562daa5ea41bf8aba16 --- test/instrumentation/stability-utils.sh | 2 +- test/instrumentation/update-documentation.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/instrumentation/stability-utils.sh b/test/instrumentation/stability-utils.sh index 757311bd9c2..2f674d08d76 100755 --- a/test/instrumentation/stability-utils.sh +++ b/test/instrumentation/stability-utils.sh @@ -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 diff --git a/test/instrumentation/update-documentation.sh b/test/instrumentation/update-documentation.sh index 5090f639cfd..b27a8ae3770 100755 --- a/test/instrumentation/update-documentation.sh +++ b/test/instrumentation/update-documentation.sh @@ -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"