From c95924d8247d439b7c5446ca8b586869474e795f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 18 Apr 2021 15:04:10 +0200 Subject: [PATCH] Framework: update grep --- Mk/plugins.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 01a35264c..d1cb1e7e6 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -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; \