Skip to content

Commit

Permalink
Use sed instead of gsed (#100)
Browse files Browse the repository at this point in the history
Resolves #99
  • Loading branch information
eliot-akira committed Dec 30, 2022
1 parent b56bae3 commit 70cc160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wordpress-playground/wordpress/Dockerfile
Expand Up @@ -64,8 +64,8 @@ RUN cp -r wordpress wordpress-static && \
# See https://github.com/WordPress/wordpress-playground/issues/42 for more details

RUN echo '<!doctype html>' > wordpress-static/wp-includes/empty.html && \
gsed -E 's#srcDoc:"[^"]+"#src:"/wp-includes/empty.html"#g' -i wordpress-static/wp-includes/js/dist/block-editor.min.js && \
gsed -E 's#srcDoc:"[^"]+"#src:"/wp-includes/empty.html"#g' -i wordpress-static/wp-includes/js/dist/block-editor.js
sed -E 's#srcDoc:"[^"]+"#src:"/wp-includes/empty.html"#g' -i wordpress-static/wp-includes/js/dist/block-editor.min.js && \
sed -E 's#srcDoc:"[^"]+"#src:"/wp-includes/empty.html"#g' -i wordpress-static/wp-includes/js/dist/block-editor.js

# Move the static files to the final output directory
RUN mv wordpress-static/* /root/output
Expand Down

0 comments on commit 70cc160

Please sign in to comment.