aboutsummaryrefslogtreecommitdiff
path: root/aux/assert-shellcheck.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-27 15:55:27 -0300
committerEuAndreh <eu@euandre.org>2021-01-27 15:58:51 -0300
commit451eed829916627e9248f1003752b43617a20ff4 (patch)
tree1799faf7932caab2f2b6fb0bccebf06601715dda /aux/assert-shellcheck.sh
parentUpdate link to "remembering" (diff)
downloadeuandre.org-451eed829916627e9248f1003752b43617a20ff4.tar.gz
euandre.org-451eed829916627e9248f1003752b43617a20ff4.tar.xz
mv build-aux/ -> aux/ and scripts/
Diffstat (limited to 'aux/assert-shellcheck.sh')
-rwxr-xr-xaux/assert-shellcheck.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/aux/assert-shellcheck.sh b/aux/assert-shellcheck.sh
new file mode 100755
index 0000000..334a875
--- /dev/null
+++ b/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