Skip to content

Commit a20aec8

Browse files
committed
fix shellcheck failures of hack/verify-openapi-spec.sh
1 parent b32b742 commit a20aec8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

hack/.shellcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
./hack/verify-codegen.sh
4848
./hack/verify-golint.sh
4949
./hack/verify-no-vendor-cycles.sh
50-
./hack/verify-openapi-spec.sh
5150
./hack/verify-readonly-packages.sh
5251
./hack/verify-test-featuregates.sh
5352
./test/cmd/apply.sh

hack/verify-openapi-spec.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
21+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2222
source "${KUBE_ROOT}/hack/lib/init.sh"
2323

2424
kube::golang::setup_env
@@ -32,10 +32,10 @@ _tmp="${KUBE_ROOT}/_tmp"
3232

3333
mkdir -p "${_tmp}"
3434
cp -a "${SPECROOT}" "${TMP_SPECROOT}"
35-
trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT
36-
rm ${SPECROOT}/*
37-
cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD
38-
cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md
35+
trap 'cp -a "${TMP_SPECROOT}" "${SPECROOT}"/..; rm -rf "${_tmp}"' EXIT SIGINT
36+
rm "${SPECROOT}"/*
37+
cp "${TMP_SPECROOT}/BUILD" "${SPECROOT}/BUILD"
38+
cp "${TMP_SPECROOT}/README.md" "${SPECROOT}/README.md"
3939

4040
"${KUBE_ROOT}/hack/update-openapi-spec.sh"
4141
echo "diffing ${SPECROOT} against freshly generated openapi spec"

0 commit comments

Comments
 (0)