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

"Send Command" shell whitespace fix #40

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

SoarinFerret
Copy link
Contributor

If you try to use /usr/bin/env bash as the custom shell in Send Command, no output is returned. This is because gocmd wants the first parameter to be the executable, with everything else being arguments afterwards.

This simple 2 line patch fixes aforementioned issue. This is useful on systems like NixOS, where bash is not in an easily identifiable location, so you have to use the above syntax.

I do not know if this code would be useful in the other cases in the if statement - if so, I could update the patch to include those.

Thanks in advance!

@SoarinFerret
Copy link
Contributor Author

Not sure what branch to merge this too - I can rebase off devel if need be, or I can alter the PR to merge against master.

@wh1te909
Copy link
Member

thanks please rebase off develop. It looks good but I still need to do full regression testing to make sure it won't break existing functionality of scripts in production. I have already frozen all code for an upcoming release, so I will try to get it into the release after next.

@SoarinFerret
Copy link
Contributor Author

This has been rebased on develop - let me know if you need anything else!

@wh1te909
Copy link
Member

works great, thanks!

@wh1te909 wh1te909 merged commit d4faa2a into amidaware:develop Dec 23, 2023
2 checks passed
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.

None yet

2 participants