oc-tweaks 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -354,13 +354,8 @@ async function detectNotifySender($, client, logConfig) {
|
|
|
354
354
|
await log(logConfig, "WARN", "[oc-tweaks] notify: no available notifier, set notify.command to override");
|
|
355
355
|
return { kind: "none" };
|
|
356
356
|
}
|
|
357
|
-
async function commandExists($, command) {
|
|
358
|
-
|
|
359
|
-
await $`which ${command}`;
|
|
360
|
-
return true;
|
|
361
|
-
} catch {
|
|
362
|
-
return false;
|
|
363
|
-
}
|
|
357
|
+
async function commandExists(_$, command) {
|
|
358
|
+
return Bun.which(command) !== null;
|
|
364
359
|
}
|
|
365
360
|
async function notifyWithSender($, sender, title, message, tag, style, logConfig) {
|
|
366
361
|
try {
|