Skip to content

exec-finish commands defined in multi line syntax do not work #11

@mediaessenz

Description

@mediaessenz

This is currently not working and throw an "Command not found" error:

exec-finish:
  - type: local
    command:
      - "echo 'Hallo'"

This instead works:

exec-finish:
  - type: local
    command: "echo 'Hallo'"

Depending on the line syntax, the commands get quoted differently:

if len(execution.Command.Multi) >= 1 {

This call works:
connection.RawShellCommandBuilder(execution.Command.Single)

This not:
connection.ShellCommandBuilder(execution.Command.Multi...)

But also the single line version has a wired behaviour:
The command ct docker:cli database:updateschema is not working on local side. Remote all is fine.

As a workaround, i'm currently doing this:

exec-finish:
      - type: local
        command: "docker-compose exec -T --user application app /bin/bash -c '/app/vendor/bin/typo3cms database:updateschema'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions