diff --git a/scripts/init-dev-env.js b/scripts/init-dev-env.js index 5b4ee6c37..8848c3937 100755 --- a/scripts/init-dev-env.js +++ b/scripts/init-dev-env.js @@ -25,6 +25,10 @@ var gitHookSetup = function() { } console.log('Adding symbolic link: %s linked to %s', scriptPath, gitHookPath); + try { + // "hooks" may not exist + fs.mkdirSync(path.dirname(gitHookPath)); + } catch (e) {} fs.symlinkSync(scriptPath, gitHookPath, 'file'); };