@evilmartians/lefthook-installer 1.11.7 → 1.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/install.js +2 -1
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -6,7 +6,8 @@ const chp = require("child_process")
6
6
  const iswin = ["win32", "cygwin"].includes(process.platform)
7
7
 
8
8
  async function install() {
9
- if (process.env.CI) {
9
+ const isEnabled = (value) => value && value !== "0" && value !== "false";
10
+ if (isEnabled(process.env.CI) && !isEnabled(process.env.LEFTHOOK)) {
10
11
  return
11
12
  }
12
13
  const downloadURL = getDownloadURL()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evilmartians/lefthook-installer",
3
- "version": "1.11.7",
3
+ "version": "1.11.9",
4
4
  "description": "Simple git hooks manager",
5
5
  "main": "bin/index.js",
6
6
  "files": [