aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rwxr-xr-xtests/assert-shellcheck.sh6
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 14220b9..e92826a 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,10 @@ src/infrastructure/keys/SSH/root@euandre.org.id_rsa.pub.stripped: \
cut -d' ' -f6- < $(@D)/`basename $@ .stripped`.txt > $@
-check:
+check-shellcheck:
+ sh tests/assert-shellcheck.sh
+
+check: check-shellcheck
clean:
rm -rf \
diff --git a/tests/assert-shellcheck.sh b/tests/assert-shellcheck.sh
new file mode 100755
index 0000000..322a508
--- /dev/null
+++ b/tests/assert-shellcheck.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+
+git ls-files |
+ grep '\.sh$' |
+ xargs shellcheck