I am trying to define 2 hooks in the hooks.json file.
What is the correct syntax for this? I can't get it to work and the examples don't mention two hook id's in a single file.
I am trying to do something like this in my hooks.json file:
[
{
"id": "webhook",
"execute-command": "/var/scripts/webhook.sh",
"command-working-directory": "/var/webhook",
}
{
"id": "webhook2",
"execute-command": "/var/scripts/webhook2.sh",
"command-working-directory": "/var/webhook"
}
]
You are missing a comma , in between the objects [ {...}, {...} ] :-)
Could have known it! Anyways, thank you very much! It solved my issues :-)
This webhook utility is great!
You're welcome :-) Glad you found it useful!
Most helpful comment
Could have known it! Anyways, thank you very much! It solved my issues :-)
This webhook utility is great!