mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 13:46:33 +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,
|
name: string,
|
||||||
): Promise<{ cancelled: boolean }> {
|
): Promise<{ cancelled: boolean }> {
|
||||||
const cmd = ['bash', escapeSh(path)].join(' ');
|
const cmd = ['bash', escapeSh(path)].join(' ');
|
||||||
const [, stderr] = await sudoExecAsync(cmd, { name });
|
await sudoExecAsync(cmd, { name });
|
||||||
if (!_.isEmpty(stderr)) {
|
|
||||||
throw errors.createError({ title: stderr });
|
|
||||||
}
|
|
||||||
return { cancelled: false };
|
return { cancelled: false };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user