« get me outta code hell

nobody saw that - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-06 17:04:57 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-06 17:04:57 -0400
commit431c3b636bcbd9cd46c5dd90ca0f818a4ea50e1f (patch)
tree981db00d60a0834a5e4959768e693c4f4e20df24
parent0fc9972296f19c5da546861b9f3bb6d08c007d20 (diff)
nobody saw that
-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) {