From 1edb60c86cf12a6c80a69a8ea182f4e04a6b5a44 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 2 May 2022 17:43:06 -0300 Subject: aux/assert-shellcheck.sh: Use git-ls-files over find --- aux/assert-shellcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aux/assert-shellcheck.sh b/aux/assert-shellcheck.sh index 40fd364..29d66a5 100755 --- a/aux/assert-shellcheck.sh +++ b/aux/assert-shellcheck.sh @@ -1,6 +1,6 @@ #!/bin/sh set -eu -find . -name '*.sh' -print0 | - xargs -0 awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' | +git ls-files | + xargs awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' | xargs shellcheck -- cgit v1.2.3