Skip to content

Commit 6ccab25

Browse files
committed
[GR-19220] Fix reading the kernel major version from the generated file.
PullRequest: truffleruby/1223
2 parents 3b756ce + 919bf2e commit 6ccab25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/jt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ def build_kernel_ver
19731973
build_os_ver_loc = build_information.index { |l| l.include?('getKernelMajorVersion') }
19741974
return '' unless build_os_ver_loc
19751975

1976-
build_information[build_os_ver_loc + 1][/^\d+/]
1976+
build_information[build_os_ver_loc + 1][/"(\d+)/, 1]
19771977
end
19781978

19791979
def shared_path

0 commit comments

Comments
 (0)