Framework: update grep

This commit is contained in:
Franco Fichtner 2021-04-18 15:04:10 +02:00
parent fc45f464be
commit c95924d824
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ lint-desc: check
lint-shell:
@for FILE in $$(find ${.CURDIR}/src -name "*.sh" -type f); do \
if [ "$$(head $${FILE} | grep -c '^#!\/bin\/sh$$')" == "0" ]; then \
if [ "$$(head $${FILE} | grep -cx '#!\/bin\/sh')" == "0" ]; then \
echo "Missing shebang in $${FILE}"; exit 1; \
fi; \
sh -n $${FILE} || exit 1; \