Skip to content

Commit

Permalink
1.3
Browse files Browse the repository at this point in the history
- Fixed search algo of node.js releases (windows)
  • Loading branch information
Osiris-Team committed Oct 8, 2021
1 parent d3d9be2 commit 2ea0bd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/osiris/headlessbrowser/NodeContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ private boolean isCorrectFileForOs(String fileName) {
// Must be a zip file
if (!fileName.contains(".zip"))
return false;
// Mac has another name: win instead of windows
if (StringUtils.containsIgnoreCase(fileName, "win")
&& (StringUtils.containsIgnoreCase(fileName, osArchitectureType.name()) || StringUtils.containsIgnoreCase(fileName, osArchitectureType.altName)))
return true;
} else {
if (!fileName.contains(".tar.gz"))
return false;
Expand Down

0 comments on commit 2ea0bd7

Please sign in to comment.