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

add shebang to bash preamble #1132

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

pbauwens
Copy link
Contributor

Scripts with no shebang are blocked by certain endpoint security tools, failing the rattler build at hand. Adding a bash shebang to the bash preamble should fix this issue.

src/script.rs Outdated
@@ -29,6 +29,7 @@ use crate::{
};

const BASH_PREAMBLE: &str = r#"
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good but I think we need to put it even one line higher (right after the #")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved it up :)

@wolfv wolfv enabled auto-merge (squash) October 23, 2024 08:03
@wolfv wolfv merged commit 7cafabc into prefix-dev:main Oct 23, 2024
15 checks passed
wolfv pushed a commit to wolfv/rattler-build that referenced this pull request Nov 6, 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

Successfully merging this pull request may close these issues.

2 participants