You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
rockett-m
changed the title
install-build-tools.sh uses #!/bin/bash as shebang but installs bash in the script [sh dep]
Circular dependency on bash within 'scripts/install-build-tools.sh'
Jul 19, 2024
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 thatscripts/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: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
The text was updated successfully, but these errors were encountered: