diff --git a/bin/install.js b/bin/install.js index 7a05be4f9..df39aae38 100755 --- a/bin/install.js +++ b/bin/install.js @@ -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, '..')