Skip to content

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

@eliot-akira

Description

@eliot-akira

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions