Skip to content

Run an action after a non zero return code in a csharp script #26

Discussion options

You must be logged in to vote

Did you try to use the exec command directly in the hook?
e.g

dotnet husky exec "CsharpScriptPath.csx" --args "$message"

I think you don't need the husky run because it will stop if receives any non-zero exit code. but exec should work fine.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ChristopherL-STCU
Comment options

@alirezanet
Comment options

@alirezanet
Comment options

@ChristopherL-STCU
Comment options

Answer selected by ChristopherL-STCU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants