From e298d5fbd8b0342a1108c037fedcbf6ab90029cb Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 9 Jan 2021 21:37:20 +0100 Subject: [PATCH] ignoring cancellation errors --- package/osx/installer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'; }