Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jun 24, 2019
1 parent de75acb commit b29d9bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/installer/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ const [, , action, huskyDir = path.join(__dirname, '../..')] = process.argv

// Find Git dir
try {
// Show un/install message
console.log(
'husky > %s git hooks',
action === 'install' ? 'Setting up' : 'Uninstalling'
)

// Get top level and git dir
const { topLevel, gitDir } = gitRevParse()

// Install or uninstall
if (action === 'install') {
install(topLevel, gitDir, huskyDir, isCI)
} else {
Expand Down

0 comments on commit b29d9bb

Please sign in to comment.