Skip to content

Commit

Permalink
fix(githon): use lstat instead of stat
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jun 16, 2020
1 parent 0a1475f commit bbe0e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/githon/lib/output/website/__tests__/i18n.js
Expand Up @@ -32,7 +32,7 @@ describe("i18n", () => {
const engine = createTemplateEngine(output, "README.md");
const t = engine.getFilters().get("t");

expect(t("GITBOOK_LINK")).toEqual("Publié avec GitBook");
expect(t("GITBOOK_LINK")).toEqual("Publié avec GitHon");
});
});
});
4 changes: 2 additions & 2 deletions packages/githon/lib/utils/fs.js
Expand Up @@ -163,8 +163,8 @@ module.exports = {
},
assertFile: assertFile,
pickFile: pickFile,
stat: Promise.nfbind(fs.stat),
statSync: fs.statSync,
stat: Promise.nfbind(fs.lstat),
statSync: fs.lstatSync,
readdir: Promise.nfbind(fs.readdir),
writeStream: writeStream,
readStream: fs.createReadStream,
Expand Down

0 comments on commit bbe0e41

Please sign in to comment.