diff --git a/.githooks/install.js b/.githooks/install.js index 5774839..644c33d 100644 --- a/.githooks/install.js +++ b/.githooks/install.js @@ -1,6 +1,7 @@ const { spawn } = require('child_process'); +const path = require('path'); -const subprocess = spawn('git', ['config', '--local', 'core.hooksPath', '.githooks/']); +const subprocess = spawn('git', ['config', '--local', 'core.hooksPath', path.join(__dirname, '.githooks/')]); subprocess.on('error', () => { console.error('Failed to install git hook.');