Skip to content

Add more example for mix tasks config #207

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

Merged
merged 4 commits into from
Jan 21, 2025
Merged

Add more example for mix tasks config #207

merged 4 commits into from
Jan 21, 2025

Conversation

qgadrian
Copy link
Owner

This PR fixes an issue where commands chained with shell operators like && or || were not executed correctly.

The problem was caused by splitting the command string with String.split(original_command, " "), which treated operators as arguments.

To fix this issue, the command is now passed directly to the shell for execution, allowing proper handling of shell operators.

Solves the error reported in #150

The problem is caused by the fact that the code uses a simple
`String.split(original_command, " ")` and treats the first token as
the executable (base_command) and the rest as arguments.

To allow using shell operators like `&&` or `||`, we can run
everything in a shell. So instead of splitting the command, we hand off
the entire string to the shell.
@qgadrian qgadrian merged commit ad2af2f into master Jan 21, 2025
1 check passed
@qgadrian qgadrian deleted the fix-chained-cmds branch January 21, 2025 18:54
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.

1 participant