Skip to content

Commit 315e56b

Browse files
authored
bugfix: compatible with Luajit x.y.ROLLING version. (#104)
1 parent 39612bd commit 315e56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/opm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ sub install_target ($$) {
10211021

10221022
if ($name eq 'luajit') {
10231023
my $out = `$resty -e 'print(jit.version)'`;
1024-
if ($? != 0 || !defined $out || $out !~ /^LuaJIT (\d+\.\d+\.\d+)/) {
1024+
if ($? != 0 || !defined $out || $out !~ /^LuaJIT (\d+\.\d+\.(?:\d+|ROLLING))/) {
10251025
err "$name is required but is not available ",
10261026
"according to $resty: ", $out // '', "\n";
10271027
}

0 commit comments

Comments
 (0)