Skip to content

Commit

Permalink
Use string instead of int 777 in fs.chmodSync so it gets correctly in…
Browse files Browse the repository at this point in the history
…terpreted as octal
  • Loading branch information
Jonathan Segal committed Dec 13, 2016
1 parent 7d6feb1 commit 683ef52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ catch (e) {
console.error('pre-commit:');
}

try { fs.chmodSync(precommit, 777); }
try { fs.chmodSync(precommit, '777'); }
catch (e) {
console.error('pre-commit:');
console.error('pre-commit: chmod 0777 the pre-commit file in your .git/hooks folder because:');
Expand Down

0 comments on commit 683ef52

Please sign in to comment.