mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +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
|
||||
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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user