mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-21 12:49:53 +08:00
docs: add sponsor feeds.pub
This commit is contained in:
+8
-16
@@ -101,21 +101,13 @@ const buildStagedList = async () => {
|
||||
|
||||
const stagedFiles = await sgf();
|
||||
for (const processor of processors) {
|
||||
// We don't want to mix up processor
|
||||
/* eslint-disable no-await-in-loop */
|
||||
await Promise.all(
|
||||
processor.rules(fileList).map(async (e) => {
|
||||
let formatted = await file.readFile(e.path);
|
||||
formatted = await processor.handler(formatted);
|
||||
await file.writeFile(e.path, formatted);
|
||||
if (stagedFiles.find((x) => e.path.indexOf(x.filename) !== -1)) {
|
||||
await exec(`git add ${e.path}`);
|
||||
}
|
||||
})
|
||||
).catch((err) => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(err);
|
||||
process.exit(1);
|
||||
});
|
||||
for (const e of processor.rules(fileList)) {
|
||||
let formatted = await file.readFile(e.path);
|
||||
formatted = await processor.handler(formatted);
|
||||
await file.writeFile(e.path, formatted);
|
||||
if (stagedFiles.find((x) => e.path.indexOf(x.filename) !== -1)) {
|
||||
await exec(`git add ${e.path}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user