#!/bin/sh12# Run linter on the lua scripts in stand/lua. luacheck, available in ports as3# devel/lua-luacheck, must be installed as a dependency of this script.45die() {6echo $*7exit 18}910LUACHECK=$(which luacheck)1112[ ! -z "${LUACHECK}" ] && [ -e "${LUACHECK}" ] || \13die "You must have luacheck installed and in your PATH"1415cd $(make -V SRCTOP)/stand16${LUACHECK} . --globals loader --globals lfs --globals io.getchar \17--globals io.ischar --globals printc --globals cli_execute \18--globals cli_execute_unparsed --globals try_include \19--globals pager --globals gfx --globals hash --std lua53202122