diff --git a/lib/shared/permissions.js b/lib/shared/permissions.js index 6c23a23d..b403007d 100755 --- a/lib/shared/permissions.js +++ b/lib/shared/permissions.js @@ -148,7 +148,7 @@ const elevateScriptWindows = async (path) => { } const elevateScriptUnix = async (path, name) => { - const cmd = [ 'sh', escapeSh(path) ].join(' ') + const cmd = [ 'bash', escapeSh(path) ].join(' ') const [ , stderr ] = await sudoPrompt.execAsync(cmd, { name }) if (!_.isEmpty(stderr)) { throw errors.createError({ title: stderr }) @@ -157,7 +157,7 @@ const elevateScriptUnix = async (path, name) => { } const elevateScriptCatalina = async (path) => { - const cmd = [ 'sh', escapeSh(path) ].join(' ') + const cmd = [ 'bash', escapeSh(path) ].join(' ') try { const { cancelled } = await catalinaSudo(cmd) return { cancelled }