Skip to content

Commit

Permalink
8306281: function isWsl() returns false on WSL2
Browse files Browse the repository at this point in the history
Backport-of: 9b0baa10b9140045aa3a49b03e685dcd3ea7c623
  • Loading branch information
TheRealMDoerr committed Jun 23, 2023
1 parent 8dae82c commit e0c9643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/conf/jib-profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ var getVersionNumbers = function () {
var isWsl = function (input) {
return ( input.build_osenv == "wsl"
|| (input.build_os == "linux"
&& java.lang.System.getProperty("os.version").contains("Microsoft")));
&& java.lang.System.getProperty("os.version").toLowerCase().contains("microsoft")));
}

var error = function (s) {
Expand Down

1 comment on commit e0c9643

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.