Skip to content

[Bug] Should not use bash to excute sh script with CRLF in it and mis-output #4398

@Pil0tXia

Description

@Pil0tXia

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Linux

EventMesh version

master

What happened

CRLF in shell script instead of LF

image

misleading output

image

image

The scripts worked with bash after dos2unix. The No Such Process output was misleading.

Relevant issue: #4299

bash or sh

image

The scripts fail when using sh even though they are marked with !/bin/sh to run with sh.

How to reproduce

https://eventmesh.apache.org/zh/docs/next/instruction/runtime/

Debug logs

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions