aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-25 17:55:13 -0300
committerEuAndreh <eu@euandre.org>2023-03-25 17:55:13 -0300
commit3ad2fdcf32de40450ed245fabccb8c7e87f3041c (patch)
tree49d61395606ccf1e47ce62dd3d08e769dcf226da
parentMakefile: Add guix.sentinel file (diff)
downloadpackage-repository-3ad2fdcf32de40450ed245fabccb8c7e87f3041c.tar.gz
package-repository-3ad2fdcf32de40450ed245fabccb8c7e87f3041c.tar.xz
Makefile: Un-inline shellcheck test
-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