mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
Don't check child-writer stderr, rely on the exit code instead
Change-type: patch
This commit is contained in:
parent
b749c2d45a
commit
3fa9611971
@ -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 };
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user