Fix sw_vers call on older macOS versions
Apparently it didn't used to allow two hyphens before flags
This commit is contained in:
parent
f8d8fb5e11
commit
3454c321e7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue