« get me outta code hell

upd8: move --no-build log message earlier - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-11 17:59:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-11 17:59:43 -0300
commited719fabb9bc5a01db8c6ed051c03c388077b05c (patch)
tree33c2b5697a75524f4ca812c1e1ff62a5fae3dce4 /src
parent41e86cba5e5afba011fc68599047e4d12df97819 (diff)
upd8: move --no-build log message earlier
Also suppress indicating the selected or default built mode.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/upd8.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/upd8.js b/src/upd8.js
index fabda27d..fdd85e22 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -448,7 +448,9 @@ async function main() {
     if (thumbsOnly) return;
   }
 
-  if (usingDefaultBuildMode) {
+  if (noBuild) {
+    logInfo`Not generating any site or page files this run (--no-build passed).`;
+  } else if (usingDefaultBuildMode) {
     logInfo`No build mode specified, using default: ${selectedBuildModeFlag}`;
   } else {
     logInfo`Using specified build mode: ${selectedBuildModeFlag}`;
@@ -643,10 +645,6 @@ async function main() {
 
   logInfo`Loaded language strings: ${Object.keys(languages).join(', ')}`;
 
-  if (noBuild) {
-    logInfo`Not generating any site or page files this run (--no-build passed).`;
-  }
-
   {
     const tagRefs = new Set(
       [...wikiData.trackData, ...wikiData.albumData]