Skip to content

Commit

Permalink
rps-server npm: fix version check when deltachat-rpc-server is found …
Browse files Browse the repository at this point in the history
…in path
  • Loading branch information
Simon-Laux committed May 16, 2024
1 parent d23a7b8 commit 6e30c00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deltachat-rpc-server/npm-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ export async function getRPCServerPath(
// test if it is the right version
try {
// for some unknown reason it is in stderr and not in stdout
const { stderr } = await promisify(execFile)(executable, ["--version"]);
const { stderr } = await promisify(execFile)(
executable,
["--version"],
{ shell: true }
);
const version = stderr.slice(0, stderr.indexOf("\n"));
if (package_json.version !== version) {
throw new Error(
Expand Down

0 comments on commit 6e30c00

Please sign in to comment.