aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xtests/assert-shellcheck.sh6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 768ddd0..845316f 100644
--- a/Makefile
+++ b/Makefile
@@ -114,7 +114,7 @@ clean: src/bin/paku
check-shellcheck:
- git ls-files | grep '\.sh$$' | xargs shellcheck
+ sh tests/assert-shellcheck.sh
local-files = \
/etc/postfix/master.cf \
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