Check global scripts for Lua errors.
This commit is contained in:
committed by
Paul Chote
parent
ae8c8e781f
commit
b56ddc1a08
1
Makefile
1
Makefile
@@ -103,6 +103,7 @@ check-scripts:
|
|||||||
@echo "Checking for Lua syntax errors..."
|
@echo "Checking for Lua syntax errors..."
|
||||||
@luac -p $(shell find mods/*/maps/* -iname '*.lua')
|
@luac -p $(shell find mods/*/maps/* -iname '*.lua')
|
||||||
@luac -p $(shell find lua/* -iname '*.lua')
|
@luac -p $(shell find lua/* -iname '*.lua')
|
||||||
|
@luac -p $(shell find mods/*/bits/scripts/* -iname '*.lua')
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@echo
|
@echo
|
||||||
|
|||||||
4
make.ps1
4
make.ps1
@@ -149,6 +149,10 @@ function Check-Scripts-Command
|
|||||||
{
|
{
|
||||||
luac -p $script
|
luac -p $script
|
||||||
}
|
}
|
||||||
|
foreach ($script in ls "mods/*/bits/scripts/*.lua")
|
||||||
|
{
|
||||||
|
luac -p $script
|
||||||
|
}
|
||||||
Write-Host "Check completed!" -ForegroundColor Green
|
Write-Host "Check completed!" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user