mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
fix shellcheck failures of hack/verify-openapi-spec.sh
This commit is contained in:
parent
b32b742d97
commit
a20aec8d2d
@ -47,7 +47,6 @@
|
|||||||
./hack/verify-codegen.sh
|
./hack/verify-codegen.sh
|
||||||
./hack/verify-golint.sh
|
./hack/verify-golint.sh
|
||||||
./hack/verify-no-vendor-cycles.sh
|
./hack/verify-no-vendor-cycles.sh
|
||||||
./hack/verify-openapi-spec.sh
|
|
||||||
./hack/verify-readonly-packages.sh
|
./hack/verify-readonly-packages.sh
|
||||||
./hack/verify-test-featuregates.sh
|
./hack/verify-test-featuregates.sh
|
||||||
./test/cmd/apply.sh
|
./test/cmd/apply.sh
|
||||||
|
@ -18,7 +18,7 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
kube::golang::setup_env
|
kube::golang::setup_env
|
||||||
@ -32,10 +32,10 @@ _tmp="${KUBE_ROOT}/_tmp"
|
|||||||
|
|
||||||
mkdir -p "${_tmp}"
|
mkdir -p "${_tmp}"
|
||||||
cp -a "${SPECROOT}" "${TMP_SPECROOT}"
|
cp -a "${SPECROOT}" "${TMP_SPECROOT}"
|
||||||
trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT
|
trap 'cp -a "${TMP_SPECROOT}" "${SPECROOT}"/..; rm -rf "${_tmp}"' EXIT SIGINT
|
||||||
rm ${SPECROOT}/*
|
rm "${SPECROOT}"/*
|
||||||
cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD
|
cp "${TMP_SPECROOT}/BUILD" "${SPECROOT}/BUILD"
|
||||||
cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md
|
cp "${TMP_SPECROOT}/README.md" "${SPECROOT}/README.md"
|
||||||
|
|
||||||
"${KUBE_ROOT}/hack/update-openapi-spec.sh"
|
"${KUBE_ROOT}/hack/update-openapi-spec.sh"
|
||||||
echo "diffing ${SPECROOT} against freshly generated openapi spec"
|
echo "diffing ${SPECROOT} against freshly generated openapi spec"
|
||||||
|
Loading…
Reference in New Issue
Block a user