mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +00:00
patch: refactor permission code
This commit is contained in:
parent
a792c854ba
commit
0f480eaa42
@ -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, '\\\\').replace(/"/g, '\\"'))
|
||||
.join(' ')}`;
|
||||
|
||||
let elevated = 'pending';
|
||||
|
Loading…
x
Reference in New Issue
Block a user