aboutsummaryrefslogtreecommitdiff
path: root/v2/aux
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-04 12:10:54 -0300
committerEuAndreh <eu@euandre.org>2023-04-04 12:10:54 -0300
commitbf4a390c23a860ff8bda9538942f2b16cdcf8c05 (patch)
treeddc45415eeb7e8908605745294f58647fd18f533 /v2/aux
parentRevamp v2/ (diff)
downloadeuandre.org-bf4a390c23a860ff8bda9538942f2b16cdcf8c05.tar.gz
euandre.org-bf4a390c23a860ff8bda9538942f2b16cdcf8c05.tar.xz
Makefile: Add ShellCheck to "check" target
Diffstat (limited to 'v2/aux')
-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