aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-24 17:17:23 -0300
committerEuAndreh <eu@euandre.org>2023-03-24 17:17:23 -0300
commit653d2e71c7be35c76dc088b5fd01634d9b90531e (patch)
treed6c8ad151859ae9a0796c7a380f5c1a42daf95fd
parentsrc/bin/paku.in: Add "PREFIX=#{prefix}" to all make calls in homebrew (diff)
downloadpackage-repository-653d2e71c7be35c76dc088b5fd01634d9b90531e.tar.gz
package-repository-653d2e71c7be35c76dc088b5fd01634d9b90531e.tar.xz
Makefile: Add "check-shellcheck" target
Diffstat (limited to '')
-rw-r--r--Makefile5
-rwxr-xr-xtests/checks/homebrew.sh1
-rwxr-xr-xtests/vm-check.sh2
3 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e61f1dc..2b72033 100644
--- a/Makefile
+++ b/Makefile
@@ -110,6 +110,9 @@ clean: src/bin/paku
$(derived-assets) result* *.mk *.sentinel public/
+check-shellcheck:
+ git ls-files | grep '\.sh$$' | xargs shellcheck
+
local-files = \
/etc/postfix/master.cf \
/etc/postfix/main.cf \
@@ -143,4 +146,4 @@ check-debian-x86_64-deb:
check-debian: check-debian-x86_64-deb
-check: check-guix check-ubuntu check-debian
+check: check-shellcheck check-guix check-ubuntu check-debian
diff --git a/tests/checks/homebrew.sh b/tests/checks/homebrew.sh
index 2104359..ba33be8 100755
--- a/tests/checks/homebrew.sh
+++ b/tests/checks/homebrew.sh
@@ -1,6 +1,7 @@
#!/bin/sh
# Load brew(1)
+# shellcheck source=/dev/null
. ~/.profile
set -eu
set -x
diff --git a/tests/vm-check.sh b/tests/vm-check.sh
index 9390acb..de78f0c 100755
--- a/tests/vm-check.sh
+++ b/tests/vm-check.sh
@@ -99,4 +99,6 @@ trap shutdown EXIT
untill -m5 -n5 ssh "$HOST" uptime
scp tests/checks/"$TYPE".sh "$HOST":check.sh
} 2>&1 | pre_host
+
+# shellcheck disable=2029
ssh "$HOST" sh check.sh "$REMOTE" 2>&1 | pre_guest