Skip to content

[Bug] [script] Shell Script install-plugin.sh Incompatibility with sh on Debian Systems #5630

@yanxiaole

Description

@yanxiaole

Search before asking

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

What happened

On Debian systems, the default /bin/sh is linked to dash. Our current script install-plugin.sh uses a substring extraction syntax ${line:0:1} that is tailored to bash. Consequently, this causes the script to error out with "Bad substitution" when executed under dash on Debian. The script needs modification to ensure compatibility across sh (particularly dash), bash, and zsh.

SeaTunnel Version

2.3.3

SeaTunnel Config

default config

Running Command

sh bin/install-plugin.sh 2.3.3

Error Exception

bin/install-plugin.sh: 54: Bad substitution

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions