windingwind c48e085b8d fix: build async bug
fix: eslint esm bug
2023-05-07 01:43:04 +08:00

15 lines
344 B
JavaScript

import process from "process";
import { execSync } from "child_process";
import cmd from "./zotero-cmd.json" assert { type: "json" };
const { killZoteroWindows, killZoteroUnix } = cmd;
try {
if (process.platform === "win32") {
execSync(killZoteroWindows);
} else {
execSync(killZoteroUnix);
}
} catch (e) {
console.error(e);
}