aboutsummaryrefslogtreecommitdiff
path: root/v2/aux/checks/shellcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'v2/aux/checks/shellcheck.sh')
-rwxr-xr-xv2/aux/checks/shellcheck.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/v2/aux/checks/shellcheck.sh b/v2/aux/checks/shellcheck.sh
new file mode 100755
index 0000000..585a75f
--- /dev/null
+++ b/v2/aux/checks/shellcheck.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+
+git ls-files |
+ xargs awk '/^#!\/bin\/sh$/ { print FILENAME } { nextfile }' |
+ xargs shellcheck -x