add-trusted-cert
Advanced tools
Comparing version
@@ -39,5 +39,6 @@ "use strict"; | ||
const params = buildAddTrustedCertCmd(options, certFile); | ||
let sudo = ''; | ||
if (options.sudo) { | ||
params.unshift('sudo'); | ||
sudo = 'sudo'; | ||
} | ||
@@ -47,3 +48,3 @@ | ||
stdout | ||
} = await (0, _execa.default)('security', params, execaOpts); | ||
} = await (0, _execa.default)(`${sudo} security`, params, execaOpts); | ||
return stdout; | ||
@@ -50,0 +51,0 @@ } |
{ | ||
"name": "add-trusted-cert", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Add trusted certificates to the macOS system keychain via an API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
240
0.42%28043
-1.02%