Remove _tmp from verify-openapi-docs-urls

This commit is contained in:
Tim Hockin 2024-03-05 17:46:06 -08:00
parent 4d6f56d398
commit 778644154f
No known key found for this signature in database

View File

@ -28,12 +28,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
SPECROOT="${KUBE_ROOT}/api/openapi-spec" SPECROOT="${KUBE_ROOT}/api/openapi-spec"
SPECV3PATH="${SPECROOT}/v3" SPECV3PATH="${SPECROOT}/v3"
_tmp="${KUBE_ROOT}/_tmp" _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
mkdir -p "${_tmp}" mkdir -p "${_tmpdir}"
trap 'rm -rf ${_tmp}' EXIT SIGINT trap 'rm -rf ${_tmpdir}' EXIT SIGINT
trap "echo Aborted; exit;" SIGINT SIGTERM trap "echo Aborted; exit;" SIGINT SIGTERM
TMP_URLS="${_tmp}/docs_urls.txt" TMP_URLS="${_tmpdir}/docs_urls.txt"
touch "${TMP_URLS}" touch "${TMP_URLS}"