Skip to content

Commit 3dfbb5b

Browse files
committed
Use unversioned luac for broader compatability
1 parent 404f0d4 commit 3dfbb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/lua-releng

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for my $file (map glob, qw{ lib/*/*.lua lib/*/*/*.lua lib/*/*/*/*.lua lib/*/*/*/
4040
close $in;
4141

4242
#print "Checking use of Lua global variables in file $file ...\n";
43-
system("luac5.1 -p -l $file | grep ETGLOBAL | grep -vE '(require|type|tostring|error|ngx|ndk|jit|setmetatable|getmetatable|string|table|io|os|print|tonumber|math|pcall|xpcall|unpack|pairs|ipairs|assert|module|package|coroutine|[gs]etfenv|next|select|rawset|rawget|debug)\$'");
43+
system("luac -p -l $file | grep ETGLOBAL | grep -vE '(require|type|tostring|error|ngx|ndk|jit|setmetatable|getmetatable|string|table|io|os|print|tonumber|math|pcall|xpcall|unpack|pairs|ipairs|assert|module|package|coroutine|[gs]etfenv|next|select|rawset|rawget|debug)\$'");
4444
#file_contains($file, "attempt to write to undeclared variable");
4545
system("grep -H -n -E --color '.{120}' $file");
4646
}

0 commit comments

Comments
 (0)