Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash preamble does not have shebang #1131

Closed
pbauwens opened this issue Oct 22, 2024 · 3 comments
Closed

bash preamble does not have shebang #1131

pbauwens opened this issue Oct 22, 2024 · 3 comments

Comments

@pbauwens
Copy link
Contributor

Is it possible to prefix the bash preamble with a #!/bin/bash

Scripts without a shebang are being blocked by the endpoint security software on our workstations which renders rattler-build unusable for us.

@wolfv
Copy link
Member

wolfv commented Oct 22, 2024

Sure thing. Do you want to send a PR?

@wolfv
Copy link
Member

wolfv commented Oct 22, 2024

const BASH_PREAMBLE: &str = r#"
## Start of bash preamble
if [ -z ${CONDA_BUILD+x} ]; then
source ((script_path))
fi
# enable debug mode for the rest of the script
set -x
## End of preamble
"#;

@wolfv
Copy link
Member

wolfv commented Oct 26, 2024

fixed by #1132

@wolfv wolfv closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants