()
| 83 | var hookExists = fs.existsSync(hook); |
| 84 | var _isOtherHook; |
| 85 | function isOtherHook() { |
| 86 | if (typeof(_isOtherHook) == 'undefined') { |
| 87 | var content = fs.readFileSync(hook, { encoding: 'utf8' }); |
| 88 | _isOtherHook = !/clns\/node-commit-msg/.test(content); |
| 89 | } |
| 90 | return _isOtherHook; |
| 91 | } |
| 92 | |
| 93 | // Uninstall hook |
| 94 |