Skip to content

[BUG] ‘bash -e’: No such file or directory #3492

@shdubsh

Description

@shdubsh

Describe the bug
After converting scripts to use /usr/bin/env, scripts fail to execute due to flags set in shebang line. This issue was introduced in PR #1047.

To Reproduce
Steps to reproduce the behavior:

  1. Build debian package via gradle
  2. Install on Debian Buster (dpkg -i)
  3. Observe:
Preparing to unpack .../opensearch_2.0.0_amd64.deb ...
/usr/bin/env: ‘bash -e’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
dpkg: error processing archive /var/cache/apt/archives/opensearch_2.0.0_amd64.deb (--install):
 new opensearch package pre-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/opensearch_2.0.0_amd64.deb

Expected behavior
The package should execute install scripts without error and complete the installation.

Plugins
N/A

Screenshots
N/A

Host/Environment (please complete the following information):

  • OS: Debian Buster

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