Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/bash: gsed: command not found #99

Closed
eliot-akira opened this issue Dec 23, 2022 · 2 comments · Fixed by #100
Closed

/bin/bash: gsed: command not found #99

eliot-akira opened this issue Dec 23, 2022 · 2 comments · Fixed by #100

Comments

@eliot-akira
Copy link
Collaborator

eliot-akira commented Dec 23, 2022

When running the task build:wp, I'm seeing the following error.

/bin/bash: gsed: command not found
The command '/bin/bash -c 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' returned a non-zero code: 127

It's coming from src/wordpress-playground/wordpress/Dockerfile.

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

From a quick search, it seems gsed is GNU sed renamed by Homebrew on macOS. Inside the Docker container, I believe the above lines should be calling sed instead. If so, I'd be happy to make a little pull request.

@adamziel
Copy link
Collaborator

adamziel commented Dec 23, 2022

You're exactly right, I'm not sure how or why it worked on my end. I will appreciate your Pull Request a lot!

@eliot-akira
Copy link
Collaborator Author

In case you might have not seen it, pull request #100 resolves this issue.

adamziel pushed a commit that referenced this issue Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants