Apply version subst multiple times per line

pull/6/head
Tim Hockin 2015-07-25 13:46:09 -07:00
parent 5bd82ffe6d
commit fbc0c7558e
1 changed files with 1 additions and 1 deletions

View File

@ -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.