Skip to content

Commit 675560c

Browse files
josegal3rd-Eden
authored andcommitted
Use string instead of int 777 in fs.chmodSync so it gets correctly interpreted as octal (#90)
1 parent 7d6feb1 commit 675560c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ catch (e) {
7676
console.error('pre-commit:');
7777
}
7878

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

0 commit comments

Comments
 (0)