subprocess(): Use isAbsolute instead of checking for slash (#3911)
This commit is contained in:
parent
ff28541245
commit
669574b484
1 changed files with 1 additions and 1 deletions
|
@ -615,7 +615,7 @@ Zotero.Utilities.Internal = {
|
|||
*/
|
||||
subprocess: async function (command, args = []) {
|
||||
// eslint-disable-next-line no-undef
|
||||
command = command.includes('/') ? command : await Subprocess.pathSearch(command);
|
||||
command = PathUtils.isAbsolute(command) ? command : await Subprocess.pathSearch(command);
|
||||
|
||||
Zotero.debug("Running " + command + " " + args.map(arg => "'" + arg + "'").join(" "));
|
||||
|
||||
|
|
Loading…
Reference in a new issue