From a3591cbc232b0438c933ca5a0a2d8b3b9e72c026 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 2 Jan 2019 11:38:47 +0100 Subject: [PATCH] Framework: also check src/etc/rc.d, don't error on missing --- Mk/plugins.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 18d34e71f..3095a420c 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -274,9 +274,13 @@ lint-xml: -name "*.xml" -type f -print0 | xargs -0 -n1 xmllint --noout lint-exec: check - @find ${.CURDIR}/src/opnsense/scripts -type f ! -name "*.xml" \ - -print0 | xargs -0 -t -n1 test -x || \ - (echo "Missing executable permission"; exit 1) +.for DIR in ${.CURDIR}/src/opnsense/scripts ${.CURDIR}/src/etc/rc.d +.if exists(${DIR}) + @find ${DIR} -type f ! -name "*.xml" -print0 | \ + xargs -0 -t -n1 test -x || \ + (echo "Missing executable permission in ${DIR}"; exit 1) +.endif +.endfor lint-php: check @find ${.CURDIR}/src \