From 3454c321e77d79db3ea337d6d0241ba5703fce79 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 23 Jun 2023 02:01:00 -0400 Subject: [PATCH] Fix sw_vers call on older macOS versions Apparently it didn't used to allow two hyphens before flags --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index c561673c3c..0396d3d4ee 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1333,7 +1333,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); if (Zotero.isMac) { try { return "macOS " - + (await Zotero.Utilities.Internal.subprocess('sw_vers', ['--productVersion'])).trim(); + + (await Zotero.Utilities.Internal.subprocess('sw_vers', ['-productVersion'])).trim(); } catch (e) { Zotero.logError(e);