From e9bcc5dbc2a8bf072c52aec10b5df543fa4ddb30 Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 11 Mar 2016 21:11:47 +0000 Subject: Explicitly skip directories. PR 50955. --- mk/check/check-interpreter.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk index 193e852d415..5a6a53eba6b 100644 --- a/mk/check/check-interpreter.mk +++ b/mk/check/check-interpreter.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-interpreter.mk,v 1.30 2015/11/27 12:45:04 jperkin Exp $ +# $NetBSD: check-interpreter.mk,v 1.31 2016/03/11 21:11:47 dholland Exp $ # # This file checks that after installation, all files of the package # that start with a "#!" line will find their interpreter. Files that @@ -56,6 +56,9 @@ _check-interpreter: error-check .PHONY if [ ! -x "$$file" ]; then \ continue; \ fi; \ + if [ -d "$$file" ]; then \ + continue; \ + fi; \ if [ ! -r "$$file" ]; then \ ${DELAYED_WARNING_MSG} "[check-interpreter.mk] File \"${DESTDIR}${PREFIX}/$$file\" cannot be read."; \ continue; \ -- cgit v1.2.3