diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-05-27 12:08:26 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-01 14:04:58 -0300 |
commit | 0944e67a92b2ac7203af1e7152a33395b32923a2 (patch) | |
tree | 22ea7e316b5e1f5328c936c0820e69071ebb4669 /src/upd8.js | |
parent | 1a359fd6f0a4f672db3e50ee7d5398f223124edb (diff) |
thumbs: imagemagick is fricking killing me
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/upd8.js b/src/upd8.js index bfdd1c2a..2051517b 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -418,11 +418,12 @@ async function main() { } if (clearThumbsFlag) { - await clearThumbs(mediaPath, {queueSize}); - - logInfo`All done! Remove ${'--clear-thumbs'} to run the next build.`; - if (skipThumbs) { - logInfo`And don't forget to remove ${'--skip-thumbs'} too, eh?`; + const result = await clearThumbs(mediaPath, {queueSize}); + if (result.success) { + logInfo`All done! Remove ${'--clear-thumbs'} to run the next build.`; + if (skipThumbs) { + logInfo`And don't forget to remove ${'--skip-thumbs'} too, eh?`; + } } return; } @@ -437,7 +438,7 @@ async function main() { quiet: !thumbsOnly, }); logInfo`Done thumbnail generation! --------+`; - if (!result) return; + if (!result.success) return; if (thumbsOnly) return; } |