Skip to content

Commit e0c9643

Browse files
committed
8306281: function isWsl() returns false on WSL2
Backport-of: 9b0baa10b9140045aa3a49b03e685dcd3ea7c623
1 parent 8dae82c commit e0c9643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/conf/jib-profiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ var getVersionNumbers = function () {
14771477
var isWsl = function (input) {
14781478
return ( input.build_osenv == "wsl"
14791479
|| (input.build_os == "linux"
1480-
&& java.lang.System.getProperty("os.version").contains("Microsoft")));
1480+
&& java.lang.System.getProperty("os.version").toLowerCase().contains("microsoft")));
14811481
}
14821482

14831483
var error = function (s) {

0 commit comments

Comments
 (0)