mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
Framework: also check src/etc/rc.d, don't error on missing
This commit is contained in:
parent
ef79eb0b87
commit
a3591cbc23
1 changed files with 7 additions and 3 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue