« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
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]