diff --git a/src/index.ts b/src/index.ts index 7228f3c88..9c4db4e7f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ const git = (args: string[]): cp.SpawnSyncReturns => export function install(dir = '.husky'): void { // Ensure that we're inside a git repository - if (git(['rev-parse']).status) { + if (git(['rev-parse']).status !== 0) { return }