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 (#90)
  • Loading branch information
josegal authored and 3rd-Eden committed Dec 13, 2016
1 parent 7d6feb1 commit 675560c
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 675560c

Please sign in to comment.