From 3dac0931d528bab55e635cce86e9a5b1dbe318f6 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 7 Apr 2022 01:53:16 -0400 Subject: add -q to script detection grep --- sbopkglint.d/10-docs.t.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbopkglint.d/10-docs.t.sh b/sbopkglint.d/10-docs.t.sh index 830e850..26e0255 100644 --- a/sbopkglint.d/10-docs.t.sh +++ b/sbopkglint.d/10-docs.t.sh @@ -32,7 +32,7 @@ if [ -d "$DOCDIR" ]; then files="$( find $DOCDIR -type f -perm /111 )" for f in $files; do - head -1 $f | grep '^#!' && continue; # script file + head -1 $f | grep -q '^#!' && continue; # script file badpermfiles+=" $f" done -- cgit v1.2.3