mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 05:36:34 +00:00
patch: refactor permission code
This commit is contained in:
parent
4c2489d00f
commit
a792c854ba
@ -43,7 +43,7 @@ export async function sudo(
|
|||||||
// Build the shell command string
|
// Build the shell command string
|
||||||
const shellCmd = `echo ${SUCCESSFUL_AUTH_MARKER} && ${command[0]} ${command
|
const shellCmd = `echo ${SUCCESSFUL_AUTH_MARKER} && ${command[0]} ${command
|
||||||
.slice(1)
|
.slice(1)
|
||||||
.map((a) => a.replace(/"/g, '"'))
|
.map((a) => a.replace(/"/g, '\\"'))
|
||||||
.join(' ')}`;
|
.join(' ')}`;
|
||||||
|
|
||||||
let elevated = 'pending';
|
let elevated = 'pending';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user