Skip to content

Incompatible with dash shell #8

@Gby56

Description

@Gby56

Hello !

I have raised this via a support request too, but I want to raise it here just in case:
The ci.sh script that is downloaded via curl and piped into sh will cause errors if sh is pointing to a strict POSIX-compliant shell like dash.

We've seen it throw errors like
Error: stderr: sh: 81: [[: not found
Which shows that it doesn't support bash -style if blocks

A solution would be to add an input for the action, to specify which shell is piped the ci.sh script... But I'm not sure if that would work either, because:

  • Downloads the sh script
  • pipe to bash
  • bash interprets the shebang that points to #!/usr/bin/env sh
  • the env will return dash instead of bash in the end...
  • error remains...

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