Skip to content

Commit 2bbf9b1

Browse files
bug fix in chmod
1 parent 035b781 commit 2bbf9b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/copyhooks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const srcDir = './hooks/';
55
const dstDir = './.git/hooks/'
66

77
fs.readdirSync(srcDir).forEach(file => {
8-
srcFile = path.join(srcDir, file);
9-
dstFile = path.join(dstDir, file);
8+
const srcFile = path.join(srcDir, file);
9+
const dstFile = path.join(dstDir, file);
1010
fs.createReadStream(srcFile).pipe(fs.createWriteStream(dstFile));
11-
fs.chmodSync(srcFile , '755');
11+
fs.chmodSync(dstFile , '755');
1212
});

0 commit comments

Comments
 (0)