mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 05:31:50 +00:00
log the lists to be used
This commit is contained in:
+7
-1
@@ -17,7 +17,13 @@ const listType = process.argv[2];
|
||||
const downloadLists = async (filename, urls) => {
|
||||
await downloadFiles(resolve(`./${filename}`), urls);
|
||||
console.log(
|
||||
`Done. The ${filename} file contains merged data from ${urls.length} list(s).`
|
||||
`Done. The ${filename} file contains merged data from the following list(s):`
|
||||
);
|
||||
console.log(
|
||||
urls.reduce(
|
||||
(previous, current, index) => previous + `${index + 1}. ${current}\n`,
|
||||
""
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user