Skip to content

Circular dependency on bash within 'scripts/install-build-tools.sh' #287

Description

@rockett-m

Abstract

We can't rely on bash as the shebang if we install bash within the script:scripts/install-build-tools.sh

Proposal: switch the shebang to #!/bin/sh or #!/usr/bin/env sh to eliminate circular dependency on bash. This may trigger several other errors as well. Could also have a mini script to install bash first so that scripts/install-build-tools.sh can remain as is.

Issue stemmed from a discussion with @maurermi about this

Description

Changing the shebang to #!/bin/sh triggered issues right away, for example:

| 0.091 scripts/install-build-tools.sh: 13: !=: not found
| 0.091 scripts/install-build-tools.sh: 19: Syntax error: "(" unexpected
| ------
| Dockerfile:25
| --------------------
|   23 |     WORKDIR /opt/tx-processor
|   24 |     
|   25 | >>> RUN scripts/install-build-tools.sh
|   26 |     RUN scripts/setup-dependencies.sh
|   27 |     

So we should consider keeping the same shell requirement and a script to get bash installed first or changing it to sh and fixing all the issues that arise.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

feedback/logisticsA suggested change in the project's governance or model of collaboration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions