diff --git a/package/osx/installer.js b/package/osx/installer.js index 9efd28c1..b445a497 100644 --- a/package/osx/installer.js +++ b/package/osx/installer.js @@ -59,7 +59,11 @@ if (args.update) { throw e; } } else if (args.install) { - runScriptOrDie('chown -R 0 /Applications/KeeWeb.app', { administratorPrivileges: true }); + try { + app.doShellScript('chown -R 0 /Applications/KeeWeb.app', { administratorPrivileges: true }); + } catch (e) { + $.exit(1); + } } else { throw 'Unknown operation'; }