Only subst things that exist

This commit is contained in:
Tim Hockin 2015-07-09 17:17:49 -07:00
parent d6756c1fbd
commit 10ce2d2e38

View File

@ -101,7 +101,7 @@ for DOC in "${DOCS_TO_EDIT[@]}"; do
done
# Update API descriptions to match this version.
$SED -ri -e "s|(releases.k8s.io)/[^/]*|\1/${NEW_VERSION}|" pkg/api/v[0-9]*/types.go
$SED -ri -e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" pkg/api/v[0-9]*/types.go
${KUBE_ROOT}/hack/run-gendocs.sh
${KUBE_ROOT}/hack/update-swagger-spec.sh