Commit 9cccdc98 authored by Marek Grabowski's avatar Marek Grabowski

Merge pull request #11865 from thockin/versionize-sed-g

Apply version subst multiple times per line
parents 8ec5324e fbc0c755
......@@ -54,7 +54,7 @@ done
for doc in "${mdfiles[@]}"; do
$SED -ri \
-e '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|g" \
"${doc}"
# Replace /HEAD in html preview links with /NEW_VERSION.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment