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

Remove shebang lines from pre/post scripts #895

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

kchilleri
Copy link
Collaborator

This PR closes issue #890.

First, shebang lines from pre/post scripts are identified. Then, they are validated against the shell interpreted defined in the beeflow:ScriptRequirements section. After this validation, we remove the shebang lines from the pre/post scripts to avoid duplicates in the final running script.

A unit test (def test_parse_workflow_script() has been modified to test this code.

@kchilleri kchilleri linked an issue Aug 1, 2024 that may be closed by this pull request
@pagrubel pagrubel requested a review from rstyd August 13, 2024 17:14
Copy link
Collaborator

@rstyd rstyd left a comment

Choose a reason for hiding this comment

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

Approved!

@kchilleri kchilleri merged commit 0953a14 into develop Aug 27, 2024
6 checks passed
@kchilleri kchilleri deleted the issue890/remove-shebang branch August 27, 2024 20:29
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.

Remove Shebang from Pre and Post scripts After Validation
2 participants