From c2dbf740cb8fe8165546adedca7f6d6c965052fd Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 18 Jan 2021 22:33:30 -0300 Subject: Move POSIX sh options out of the shebang line --- build-aux/assert-shellcheck.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build-aux/assert-shellcheck.sh') diff --git a/build-aux/assert-shellcheck.sh b/build-aux/assert-shellcheck.sh index d07815b..334a875 100755 --- a/build-aux/assert-shellcheck.sh +++ b/build-aux/assert-shellcheck.sh @@ -1,5 +1,6 @@ -#!/bin/sh -eux +#!/bin/sh +set -eux git ls-files -z | \ - xargs -0 awk 'FNR==1 && /^#!\/bin\/sh/ { print FILENAME }' | \ + xargs -0 awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' | \ xargs shellcheck -- cgit v1.2.3