From 3ad2fdcf32de40450ed245fabccb8c7e87f3041c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 25 Mar 2023 17:55:13 -0300 Subject: Makefile: Un-inline shellcheck test --- Makefile | 2 +- tests/assert-shellcheck.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 tests/assert-shellcheck.sh 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 -- cgit v1.2.3