Use absolute path when running sw_vers
This commit is contained in:
parent
982d087987
commit
5d150958de
1 changed files with 1 additions and 1 deletions
|
@ -1375,7 +1375,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('/usr/bin/sw_vers', ['-productVersion'])).trim();
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
|
|
Loading…
Add table
Reference in a new issue