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

Fix issue with whitespace (#3966) #3976

Merged
merged 1 commit into from Nov 2, 2017
Merged

Conversation

ketan
Copy link
Member

@ketan ketan commented Nov 2, 2017

The current implementation of
AgentProcessParentImpl#agentInvocationCommand will look at
AGENT_STARTUP_ARGS env and split those by a whitespace which causes
an incorrect command line to be assembled.

We now set the log dir in agent.sh only in cases where the agent is
invoked via init script. When executed via ./agent.sh, the default log
dir is $PWD/logs and need not be passed in.

The current implementation of
`AgentProcessParentImpl#agentInvocationCommand` will look at
`AGENT_STARTUP_ARGS` env and split those by a whitespace which causes
an incorrect command line to be assembled.

We now set the log dir in `agent.sh` only in cases where the agent is
invoked via init script. When executed via `./agent.sh`, the default log
dir is `$PWD/logs` and need not be passed in.
@ketan ketan merged commit fedb5c5 into gocd:master Nov 2, 2017
@ketan ketan added this to the Release 17.12 milestone Nov 2, 2017
@ketan ketan deleted the fix/agent-pwd-whitespace branch November 2, 2017 10:01
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

1 participant