X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=build%2Fcheck-controllers.sh;h=47f66eac949a78ceff7289a11ace499909575ad0;hb=e86855a6a29a8e5477159d4d2e7031961584f0ba;hp=573e6f8642342cd23a9a0532e1f7f24181b55f3a;hpb=f4dd2e6dfbc97769ff6eb4cc648f91e28e6b5603;p=oweals%2Fluci.git diff --git a/build/check-controllers.sh b/build/check-controllers.sh index 573e6f864..47f66eac9 100755 --- a/build/check-controllers.sh +++ b/build/check-controllers.sh @@ -14,7 +14,7 @@ find . -type f -name '*.lua' -path '*/controller/*' | while read controller; do package="${controller##*/controller/}"; package="${package%.lua}"; package="luci.controller.${package//\//.}" if ! grep -sqE '\bmodule[[:space:]]*\(?[[:space:]]*("|\047|\[=*\[)'"$package" "$controller"; then - echo "'$controller' does not containt the expected\n\t'module(\"$package\", ...)' line.\n" + echo "'$controller' does not contain the expected\n\t'module(\"$package\", ...)' line.\n" fi grep -sqE '\b(Form|SimpleForm)[[:space:]]*\(' "$model" && ! grep -sqE '\bMap[[:space:]]*\(' "$model" && is_form=1 || is_form=0