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

Command fails space in arguments #59

Open
scottix opened this issue Jan 30, 2021 · 1 comment
Open

Command fails space in arguments #59

scottix opened this issue Jan 30, 2021 · 1 comment

Comments

@scottix
Copy link

scottix commented Jan 30, 2021

In the command and I think the build although haven't tested
If you have a space in the option it will fail to run.

CompileDaemon --build="go build -o program main.go " --command="./program --option=\"1 2\""

Seems to split on spaces which is not always correct.

@githubnemo
Copy link
Owner

That's true. I don't think CompileDaemon will ever cover this. Write your command to a shell script instead and invoke that instead. For example:

command.sh:

#!/bin/sh

./program --option="1 2"

run:

CompileDaemon --command ./command.sh

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