CompileDaemon icon indicating copy to clipboard operation
CompileDaemon copied to clipboard

Command fails space in arguments

Open scottix opened this issue 4 years ago • 1 comments

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.

scottix avatar Jan 30 '21 16:01 scottix

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

githubnemo avatar Feb 07 '21 17:02 githubnemo