« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 70297c6c..38a2e87d 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2610,7 +2610,7 @@ async function main() {
   logInfo`Written!`;
 }
 
-if (isMain(import.meta.url)) {
+if (isMain(import.meta.url) || path.basename(process.argv[1]) === 'hsmusic') {
   main()
     .catch((error) => {
       if (error instanceof AggregateError) {