From 4dc56a8b6f6fc0c0f16a92d51f99583909303f95 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 22 Jan 2021 15:05:07 -0300 Subject: Add build-aux/assert-shellcheck.sh and run in "check" target --- build-aux/assert-shellcheck.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 build-aux/assert-shellcheck.sh (limited to 'build-aux/assert-shellcheck.sh') diff --git a/build-aux/assert-shellcheck.sh b/build-aux/assert-shellcheck.sh new file mode 100755 index 0000000..334a875 --- /dev/null +++ b/build-aux/assert-shellcheck.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -eux + +git ls-files -z | \ + xargs -0 awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' | \ + xargs shellcheck -- cgit v1.2.3