Skip to content

Commit

Permalink
fix(hook): windows path escapes (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianSelnas authored and Kent C. Dodds committed Jul 4, 2016
1 parent 26b5fa7 commit e3e552a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hook.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ exports.generatedMessage = 'Generated by ghooks. Do not edit this file.'
exports.content = fs
.readFileSync(resolve(`${__dirname}/hook.template.raw`), 'UTF-8')
.replace('{{generated_message}}', exports.generatedMessage)
.replace('{{node_modules_path}}', join(process.cwd(), '..').replace(/\\/g, '\\'))
.replace('{{node_modules_path}}', join(process.cwd(), '..').replace(/\\/g, '\\\\'))

0 comments on commit e3e552a

Please sign in to comment.