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

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

Open
mediaessenz opened this issue Jul 13, 2020 · 0 comments
Open

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

mediaessenz opened this issue Jul 13, 2020 · 0 comments

Comments

@mediaessenz
Copy link

mediaessenz commented Jul 13, 2020

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'"
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

1 participant