I have a script that I runs during a Git commit to get the current commit message using Husky's commit-msg
hook, with that script I make HTTP requests.
My challenge is to run another script after the Husky hook script is done.
The script I want to run uses the Enquirer NPM package.
I tried running the script that contain the code for Enquirer within a post-commit
hook from Husky but what happens is that both scripts are ran at the same time and the second script exits with the commit-msg
,
So I want a way to wait for commit-msg
to completely finish and then I run the one with Enquirer.
I tried resolving the issue by following this thread but the child process also exits with the commit-msg
.
The output looks something like
Any ideas on how to circumvent this? thanks.