Check global scripts for Lua errors.

This commit is contained in:
Matthias Mailänder
2020-08-23 17:21:16 +02:00
committed by Paul Chote
parent ae8c8e781f
commit b56ddc1a08
2 changed files with 5 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ check-scripts:
@echo "Checking for Lua syntax errors..."
@luac -p $(shell find mods/*/maps/* -iname '*.lua')
@luac -p $(shell find lua/* -iname '*.lua')
@luac -p $(shell find mods/*/bits/scripts/* -iname '*.lua')
check:
@echo

View File

@@ -149,6 +149,10 @@ function Check-Scripts-Command
{
luac -p $script
}
foreach ($script in ls "mods/*/bits/scripts/*.lua")
{
luac -p $script
}
Write-Host "Check completed!" -ForegroundColor Green
}
else