jurassiscripts / velociraptor

The npm-style script runner for Deno

Home Page:https://velociraptor.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

there is any way to pass data between githooks scripts?

jupegarnica opened this issue · comments

commented

I am trying to source env variables without success.

image

@jupegarnica if I'm not wrong this doesn't work because the two hooks run in different (not nested) shells, where the exported variables are not shared. What you can do is call the getStagedFiles.sh script from both hooks to avoid repeating the logic.

commented

Make sense,

Thanks