diff --git a/sh/husky.sh b/sh/husky.sh index b4a6673df..c33500d03 100644 --- a/sh/husky.sh +++ b/sh/husky.sh @@ -10,7 +10,7 @@ command_exists () { run_command () { if command_exists "$1"; then - "$@" husky-run $hookName "$gitParams" + "$@" husky-run $hookName $gitParams exitCode="$?" debug "$* husky-run exited with $exitCode exit code" diff --git a/src/installer/__tests__/__snapshots__/scripts.ts.snap b/src/installer/__tests__/__snapshots__/scripts.ts.snap index 5f657067d..37d4da4fc 100644 --- a/src/installer/__tests__/__snapshots__/scripts.ts.snap +++ b/src/installer/__tests__/__snapshots__/scripts.ts.snap @@ -39,7 +39,7 @@ command_exists () { run_command () { if command_exists \\"$1\\"; then - \\"$@\\" husky-run $hookName \\"$gitParams\\" + \\"$@\\" husky-run $hookName $gitParams exitCode=\\"$?\\" debug \\"$* husky-run exited with $exitCode exit code\\"