ardupilot/Tools/scripts/run_luacheck.sh
Richard Marko 04b46678a4 treewide: fix shebangs - /bin/bash -> /usr/bin/env bash
Most scripts/tools use non-portable `/bin/bash`, switch
to environment agnostic `/usr/bin/env bash`.
2024-02-13 11:36:23 +11:00

16 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
# Run lua check for all lua files passing AP specific config
# Can also pass any number of arguments that are passed onto luacheck
# for example the path of a single script could be given
cd "$(dirname "$0")"
cd ../..
CHECK_PATH="$*"
if test -z "$CHECK_PATH"
then
CHECK_PATH="*/"
fi
luacheck ${CHECK_PATH} --config libraries/AP_Scripting/tests/luacheck.lua