From a792c854ba31ce0869a77cfc68f7be1d1cde09cf Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Wed, 16 Jul 2025 11:49:20 +0200 Subject: [PATCH] patch: refactor permission code --- lib/shared/sudo/darwin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/sudo/darwin.ts b/lib/shared/sudo/darwin.ts index 5eb0993c..5f05dae0 100644 --- a/lib/shared/sudo/darwin.ts +++ b/lib/shared/sudo/darwin.ts @@ -43,7 +43,7 @@ export async function sudo( // Build the shell command string const shellCmd = `echo ${SUCCESSFUL_AUTH_MARKER} && ${command[0]} ${command .slice(1) - .map((a) => a.replace(/"/g, '"')) + .map((a) => a.replace(/"/g, '\\"')) .join(' ')}`; let elevated = 'pending';