webhook icon indicating copy to clipboard operation
webhook copied to clipboard

Command execution in multiple directories

Open andrespadron98 opened this issue 2 years ago • 1 comments

Hello, is it possible to make when the webhook is activated execute a command in more than 1 directory in the same webhook?

andrespadron98 avatar Apr 17 '23 15:04 andrespadron98

Could you use cd command in your wrapper shell script?

i.e.

#!/bin/sh

cd /home/user/foo
command1

cd /home/user/bar
command2

adnanh avatar Apr 17 '23 19:04 adnanh

webhook only supports executing a single command per request. As @adnanh suggested, anything more complicated than that will need to happen within your external command.

moorereason avatar Apr 01 '24 21:04 moorereason