From 7ee62c0418c81f311c0fbf1b58a5d8423f6e008c Mon Sep 17 00:00:00 2001 From: Oscar Tin Lai Date: Wed, 15 Jul 2020 04:39:58 +1000 Subject: [PATCH] Enable shellcheck for shebang with /bin/env (#22) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joakim Sørensen --- runaction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runaction b/runaction index 0bdea9a..e706e5a 100755 --- a/runaction +++ b/runaction @@ -52,7 +52,7 @@ readarray -d '' filepaths < <(find . -type f "${excludes[@]}" \ readarray -d '' tmp < <(find . "${excludes[@]}" -type f ! -name '*.*' -perm /111 -print0) for file in "${tmp[@]}"; do - head -n1 "$file" | grep -Eqs "^#! */[^ ]*/[abkz]*sh" || continue + head -n1 "$file" | grep -Eqs "^#! */[^ ]*/(env *)?[abkz]*sh" || continue filepaths+=("$file") done