From 6f3a6d112e27610ead8aa99cea8a3a9ec2c2dd40 Mon Sep 17 00:00:00 2001 From: Dae Date: Sat, 16 Dec 2023 21:48:07 -0500 Subject: [PATCH] update killZoteroUnix command to ignore grep pipe (#89) --- README.md | 1 + scripts/zotero-cmd-template.json | 2 +- src/hooks.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5937da4..5bbf905 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ This is a plugin template for [Zotero](https://www.zotero.org/). [![GitHub Repo stars](https://img.shields.io/github/stars/MuiseDestiny/zotero-figure?label=zotero-figure&style=flat-square)](https://github.com/MuiseDestiny/zotero-figure) [![GitHub Repo stars](https://img.shields.io/github/stars/l0o0/jasminum?label=jasminum&style=flat-square)](https://github.com/l0o0/jasminum) [![GitHub Repo stars](https://img.shields.io/github/stars/lifan0127/ai-research-assistant?label=ai-research-assistant&style=flat-square)](https://github.com/lifan0127/ai-research-assistant) +[![GitHub Repo stars](https://img.shields.io/github/stars/daeh/zotero-markdb-connect?label=zotero-markdb-connect&style=flat-square)](https://github.com/daeh/zotero-markdb-connect) If you are using this repo, I recommended that you put the following badge on your README: diff --git a/scripts/zotero-cmd-template.json b/scripts/zotero-cmd-template.json index c02a99f..27143f6 100644 --- a/scripts/zotero-cmd-template.json +++ b/scripts/zotero-cmd-template.json @@ -1,7 +1,7 @@ { "usage": "Copy and rename this file to zotero-cmd.json. Edit the cmd.", "killZoteroWindows": "taskkill /f /im zotero.exe", - "killZoteroUnix": "kill -9 $(ps -x | grep zotero)", + "killZoteroUnix": "kill -9 $(ps -x | grep '[z]otero' | awk '{print $1}')", "exec": { "@comment-zoteroBinPath": "Please input the path of the Zotero binary file in `zoteroBinPath`.", "@comment-zoteroBinPath-tip": "The path delimiter should be escaped as `\\` for win32. The path is `*/Zotero.app/Contents/MacOS/zotero` for MacOS.", diff --git a/src/hooks.ts b/src/hooks.ts index 91b9350..0f3faa6 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -180,7 +180,7 @@ function onDialogEvents(type: string) { // Add your hooks here. For element click, etc. // Keep in mind hooks only do dispatch. Don't add code that does real jobs in hooks. -// Otherwise the code would be hard to read and maintian. +// Otherwise the code would be hard to read and maintain. export default { onStartup,