Skip to content

Commit

Permalink
added HUSKY_SKIP_INSTALL env variable to skip hook install (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
noamokman authored and typicode committed Sep 19, 2017
1 parent 47b234c commit 32bc916
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ if (isCI && !process.env.HUSKY_IGNORE_CI) {
process.exit(0)
}

if (process.env.HUSKY_SKIP_INSTALL) {
console.log(`env variable HUSKY_SKIP_INSTALL is set to ${process.env.HUSKY_SKIP_INSTALL}, skipping Git hooks installation`)
process.exit(0)
}

console.log('setting up Git hooks')

const huskyDir = path.join(__dirname, '..')
Expand Down

0 comments on commit 32bc916

Please sign in to comment.