« get me outta code hell

thumbs: imagemagick is fricking killing me - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
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
commit0944e67a92b2ac7203af1e7152a33395b32923a2 (patch)
tree22ea7e316b5e1f5328c936c0820e69071ebb4669 /src/upd8.js
parent1a359fd6f0a4f672db3e50ee7d5398f223124edb (diff)
thumbs: imagemagick is fricking killing me
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js13
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;
   }