diff --git a/Makefile b/Makefile index c39c337a0c..6e505ca2c5 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/make.ps1 b/make.ps1 index 2bfd2e4ea8..2c152f1643 100644 --- a/make.ps1 +++ b/make.ps1 @@ -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