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

when output value is json or contains double-quotes, got wrong value in next step #231

Closed
lixiv opened this issue Aug 3, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@lixiv
Copy link

lixiv commented Aug 3, 2022

examples:

steps:
  - name: "first"
    command: "echo {\"key\":\"value\"}"
    output: JSON
  - name: "second"
    command: "echo $JSON"
    depends:
      - first
@yottahmd yottahmd added the bug Something isn't working label Aug 3, 2022
@yottahmd
Copy link
Collaborator

yottahmd commented Aug 3, 2022

@lixiv I have tried to reproduce the issue, but it seems working correctly on my computer.
Could you please try updating to the latest version v1.6.6 and check if the issue still happens?

Dagu admin 2022-08-03 20-30-21

@lixiv
Copy link
Author

lixiv commented Aug 3, 2022

@lixiv I have tried to reproduce the issue, but it seems working correctly on my computer. Could you please try updating to the latest version v1.6.6 and check if the issue still happens?

Dagu admin 2022-08-03 20-30-21

the expect result is {"key":"value"}, but got {key:value}

@yottahmd
Copy link
Collaborator

yottahmd commented Aug 3, 2022

Oh, sorry for my misunderstanding. I see. Will look at it.

@yottahmd
Copy link
Collaborator

yottahmd commented Aug 3, 2022

@lixiv Fixed in version v1.6.7. It was great that this issue has been discovered. Thank you very much!

@yottahmd yottahmd closed this as completed Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants