mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
plugins: relax shebang requirement
This commit is contained in:
parent
c9f3c7b792
commit
40785d2ec1
1 changed files with 1 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ lint-desc: check
|
|||
|
||||
lint-shell:
|
||||
@for FILE in $$(find ${.CURDIR}/src -name "*.sh" -type f); do \
|
||||
if [ "$$(head $${FILE} | grep -cx '#!\/bin\/sh')" == "0" ]; then \
|
||||
if [ "$$(head $${FILE} | grep -c '^#!\/)" == "0" ]; then \
|
||||
echo "Missing shebang in $${FILE}"; exit 1; \
|
||||
fi; \
|
||||
sh -n $${FILE} || exit 1; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue