Commit c5f65255 authored by Tim Hockin's avatar Tim Hockin

Merge pull request #10961 from thockin/docs-bugfix-strip-release

Fix quoting issue on sed
parents 9f3301d6 e099a7f0
...@@ -95,8 +95,8 @@ echo "+++ Versioning documentation and examples" ...@@ -95,8 +95,8 @@ echo "+++ Versioning documentation and examples"
DOCS_TO_EDIT=(docs/README.md examples/README.md) DOCS_TO_EDIT=(docs/README.md examples/README.md)
for DOC in "${DOCS_TO_EDIT[@]}"; do for DOC in "${DOCS_TO_EDIT[@]}"; do
$SED -ri \ $SED -ri \
-e '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \
-e "s/HEAD/${NEW_VERSION}/" \ -e "s/HEAD/${NEW_VERSION}/" \
-e "/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d" \
"${DOC}" "${DOC}"
done done
......
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