if an image already exists, assume it's okay

This commit is contained in:
Kiril Vatev 2020-08-19 17:58:06 -04:00
parent a02f68a51b
commit 64f4e6cfab

View File

@ -32,6 +32,11 @@ const images = [{
(async () => {
for (let image of images) {
// we won't assume malicious intent... if the images exist, don't bother fetching them
if (await fs.exists(image.path)) {
continue;
}
const { url, name } = image;
const res = await fetch(url);