aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-23 19:56:35 -0300
committerEuAndreh <eu@euandre.org>2021-01-23 19:56:35 -0300
commit6b7e12ab55d1328e6a1c421cbb362c1e76ca0ca1 (patch)
treef202a06a134ddada6d49644dc56a6b6f4eb21ab0
parentRemove unused README.sh (diff)
downloadeuandre.org-6b7e12ab55d1328e6a1c421cbb362c1e76ca0ca1.tar.gz
euandre.org-6b7e12ab55d1328e6a1c421cbb362c1e76ca0ca1.tar.xz
{scripts => build-aux}/assert-shellcheck.sh
-rwxr-xr-xbuild-aux/assert-shellcheck.sh6
-rwxr-xr-xscripts/assert-shellcheck.sh7
-rwxr-xr-xtests.sh2
3 files changed, 7 insertions, 8 deletions
diff --git a/build-aux/assert-shellcheck.sh b/build-aux/assert-shellcheck.sh
new file mode 100755
index 0000000..334a875
--- /dev/null
+++ b/build-aux/assert-shellcheck.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eux
+
+git ls-files -z | \
+ xargs -0 awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' | \
+ xargs shellcheck
diff --git a/scripts/assert-shellcheck.sh b/scripts/assert-shellcheck.sh
deleted file mode 100755
index 76fb2d0..0000000
--- a/scripts/assert-shellcheck.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-set -eux
-
-git ls-files -z | \
- grep -zv vendor | \
- xargs -0 awk 'FNR==1 && /^#!\/bin\/sh/ { print FILENAME }' | \
- xargs shellcheck
diff --git a/tests.sh b/tests.sh
index 4eddfe0..1c546a6 100755
--- a/tests.sh
+++ b/tests.sh
@@ -3,7 +3,7 @@ set -eux
sh scripts/assert-spelling.sh
sh scripts/assert-nixfmt.sh
-sh scripts/assert-shellcheck.sh
+sh build-aux/assert-shellcheck.sh
sh scripts/assert-todos.sh
sh scripts/sync-translations.sh