fix(agent/agentcontainers): stop logging empty lines (#18605)

This PR makes the devcontainer logs have fewer whitespace lines.
This commit is contained in:
Danielle Maywood
2025-06-26 16:58:10 +01:00
committed by GitHub
parent 5ae320e79e
commit 98c77fece5
4 changed files with 8 additions and 16 deletions

View File

@ -1442,7 +1442,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
return xerrors.Errorf("set agent binary executable: %w", err)
}
// Make sure the agent binary is executable so we can run it.
// Make sure the agent binary is owned by a valid user so we can run it.
if _, err := api.ccli.ExecAs(ctx, container.ID, "root", "/bin/sh", "-c", fmt.Sprintf("chown $(id -u):$(id -g) %s", coderPathInsideContainer)); err != nil {
return xerrors.Errorf("set agent binary ownership: %w", err)
}