Technically, parseInt needs a string as parameter
This commit is contained in:
parent
e8e5d8829e
commit
4c123b4a0a
|
|
@ -23,7 +23,7 @@ const SOURCE_DIR = path.join(HOMEBREW_DIR, project);
|
||||||
const importSource = importSourceFactory(SOURCE_DIR);
|
const importSource = importSourceFactory(SOURCE_DIR);
|
||||||
|
|
||||||
const meta = importSource("meta.json");
|
const meta = importSource("meta.json");
|
||||||
meta._meta.dateLastModified = parseInt(Date.now()/1000);
|
meta._meta.dateLastModified = parseInt((Date.now()/1000).toString());
|
||||||
|
|
||||||
const sources = fs.readdirSync(SOURCE_DIR, {
|
const sources = fs.readdirSync(SOURCE_DIR, {
|
||||||
withFileTypes: true,
|
withFileTypes: true,
|
||||||
|
|
@ -60,4 +60,4 @@ if (fs.existsSync(outFile)) {
|
||||||
fs.unlinkSync(outFile);
|
fs.unlinkSync(outFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync(outFile, JSON.stringify(homebrew, null, 4), { encoding: "utf-8"});
|
fs.writeFileSync(outFile, JSON.stringify(homebrew, null, 4), { encoding: "utf-8"});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue