aboutsummaryrefslogtreecommitdiff
path: root/build-aux/assert-shellcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/assert-shellcheck.sh')
-rwxr-xr-xbuild-aux/assert-shellcheck.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-aux/assert-shellcheck.sh b/build-aux/assert-shellcheck.sh
new file mode 100755
index 0000000..d07815b
--- /dev/null
+++ b/build-aux/assert-shellcheck.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -eux
+
+git ls-files -z | \
+ xargs -0 awk 'FNR==1 && /^#!\/bin\/sh/ { print FILENAME }' | \
+ xargs shellcheck