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

Incompatible with dash shell #8

Open
Gby56 opened this issue Apr 13, 2023 · 0 comments
Open

Incompatible with dash shell #8

Gby56 opened this issue Apr 13, 2023 · 0 comments

Comments

@Gby56
Copy link

Gby56 commented Apr 13, 2023

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...
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

No branches or pull requests

1 participant