From 3fa961197165b773000127ae156480cc75ac6716 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Thu, 4 Jun 2020 20:25:12 +0200 Subject: [PATCH] Don't check child-writer stderr, rely on the exit code instead Change-type: patch --- lib/shared/permissions.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/shared/permissions.ts b/lib/shared/permissions.ts index 0390e034..51580a35 100755 --- a/lib/shared/permissions.ts +++ b/lib/shared/permissions.ts @@ -126,10 +126,7 @@ async function elevateScriptUnix( name: string, ): Promise<{ cancelled: boolean }> { const cmd = ['bash', escapeSh(path)].join(' '); - const [, stderr] = await sudoExecAsync(cmd, { name }); - if (!_.isEmpty(stderr)) { - throw errors.createError({ title: stderr }); - } + await sudoExecAsync(cmd, { name }); return { cancelled: false }; }