Skip to content

Commit

Permalink
fix: add git not installed error message (#1208)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Deutsch <[email protected]>
  • Loading branch information
jakobgabrield and Jakob Deutsch authored Jan 3, 2023
1 parent 2945907 commit 500d450
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function install(dir = '.husky'): void {
// If git command is not found, status is null and we should return.
// That's why status value needs to be checked explicitly.
if (git(['rev-parse']).status !== 0) {
l(`git must be installed on your machine`)
return
}

Expand Down

0 comments on commit 500d450

Please sign in to comment.