Skip to content

Add a fallback to use sh instead of hardcoded bash #405

@shivam-clary

Description

@shivam-clary

In a lot of docker images like alpine based images, they only contain sh. They don't contain bash by default making it impossible to run any command using the execd. Here we can see the bash command is hardcoded. Can we instead have a way to either set a configuration from the client library or just a generic fallback to sh if it is not available?

cmd := exec.CommandContext(ctx, "bash", "-c", request.Code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions